Uses of Class
com.avoka.tm.http.HttpResponse
Packages that use HttpResponse
Package
Description
Provides HTTP Client classes using underlying Apache HTTP Components library.
Provides Unit Testing support classes.
-
Uses of HttpResponse in com.avoka.tm.http
Methods in com.avoka.tm.http that return HttpResponseModifier and TypeMethodDescriptionHttpRequest.execute()
Perform a HTTP request and return a response object.HttpResponse.setContent
(byte[] content) HttpResponse.setContentEncoding
(String contentEncoding) HttpResponse.setContentLength
(long contentLength) HttpResponse.setContentType
(String contentType) HttpResponse.setHeaders
(Map<String, String> headers) Set the map of HTTP response headers.HttpResponse.setStatus
(int status) HttpResponse.setStatusLine
(String statusLine) 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 HttpResponseModifier and TypeMethodDescriptionstatic 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 HttpResponseModifier and TypeMethodDescriptionMockRegister.thenReturn
(HttpResponse response) Resolves the previously set HttpRequest (via when(HttpRequest) and registers the given HttpResponse for it in the mock test request registry.