MockLowLevelHttpResponse |
MockLowLevelHttpResponse.addHeader(String name,
String value) |
Adds a header to the response.
|
MockLowLevelHttpResponse |
MockLowLevelHttpRequest.getResponse() |
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setContent(byte[] byteContent) |
Sets the response content to the given byte array.
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setContent(InputStream content) |
Sets the input stream content of HTTP response or null for none.
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setContent(String stringContent) |
Sets the response content to the given content string.
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setContentEncoding(String contentEncoding) |
Sets the content encoding or null for none.
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setContentLength(long contentLength) |
Sets the content length or -1 for unknown.
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setContentType(String contentType) |
Sets the content type of HTTP response or null for none.
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setHeaderNames(List<String> headerNames) |
Sets the list of header names of HTTP response.
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setHeaderValues(List<String> headerValues) |
Sets the list of header values of HTTP response.
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setReasonPhrase(String reasonPhrase) |
Sets the HTTP reason phrase or null for none.
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setStatusCode(int statusCode) |
Sets the status code of HTTP response.
|
MockLowLevelHttpResponse |
MockLowLevelHttpResponse.setZeroContent() |
Sets the content to null and the content length to 0.
|