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 HttpResponse
HttpRequest. execute()
Perform a HTTP request and return a response object.HttpResponse
HttpResponse. setContent(byte[] content)
HttpResponse
HttpResponse. setContentEncoding(String contentEncoding)
HttpResponse
HttpResponse. setContentLength(long contentLength)
HttpResponse
HttpResponse. setContentType(String contentType)
HttpResponse
HttpResponse. setHeaders(Map<String,String> headers)
Set the map of HTTP response headers.HttpResponse
HttpResponse. setStatus(int status)
HttpResponse
HttpResponse. setStatusLine(String statusLine)
HttpResponse
HttpResponse. 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 HttpResponse
MockRegister. 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 MockRegister
MockRegister. thenReturn(HttpResponse response)
Resolves the previously set HttpRequest (via when(HttpRequest) and registers the given HttpResponse for it in the mock test request registry.
-