Uses of Class
com.avoka.tm.http.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
Modifier 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
Modifier and TypeMethodDescriptionstatic HttpResponse
MockRegister.getHttpResponse
(HttpRequest request) Return the HttpResponse registered for the given request, if any.Modifier 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.