Uses of Class
com.avoka.tm.http.HttpResponse
-
Packages that use HttpResponse Package Description com.avoka.tm.http Provides HTTP Client classes using underlying Apache HTTP Components library.com.avoka.tm.test Provides Unit Testing support classes. -
-
Uses of HttpResponse in com.avoka.tm.http
Methods in com.avoka.tm.http that return HttpResponse Modifier and Type Method Description HttpResponseHttpRequest. execute()Perform a HTTP request and return a response object.HttpResponseHttpResponse. setContent(byte[] content)HttpResponseHttpResponse. setContentEncoding(String contentEncoding)HttpResponseHttpResponse. setContentLength(long contentLength)HttpResponseHttpResponse. setContentType(String contentType)HttpResponseHttpResponse. setHeaders(Map<String,String> headers)Set the map of HTTP response headers.HttpResponseHttpResponse. setStatus(int status)HttpResponseHttpResponse. setStatusLine(String statusLine)HttpResponseHttpResponse. setTextContent(String content)Sets the text content in the response. -
Uses of HttpResponse in com.avoka.tm.test
Methods in com.avoka.tm.test that return HttpResponse Modifier and Type Method Description static HttpResponseMockRegister. getHttpResponse(HttpRequest request)Return the HttpResponse registered for the given request, if any.Methods in com.avoka.tm.test with parameters of type HttpResponse Modifier and Type Method Description MockRegisterMockRegister. thenReturn(HttpResponse response)Resolves the previously set HttpRequest (via when(HttpRequest) and registers the given HttpResponse for it in the mock test request registry.
-