Uses of Class
com.google.api.client.testing.http.MockLowLevelHttpResponse
Packages that use MockLowLevelHttpResponse
-
Uses of MockLowLevelHttpResponse in com.google.api.client.testing.http
Fields in com.google.api.client.testing.http declared as MockLowLevelHttpResponseModifier and TypeFieldDescription(package private) MockLowLevelHttpResponse
MockHttpTransport.Builder.lowLevelHttpResponse
TheMockLowLevelHttpResponse
that should be the result of theMockLowLevelHttpRequest
to be returned byMockHttpTransport.buildRequest(java.lang.String, java.lang.String)
.private MockLowLevelHttpResponse
MockHttpTransport.lowLevelHttpResponse
TheMockLowLevelHttpResponse
to be returned when thisMockHttpTransport
executes the associated request.private MockLowLevelHttpResponse
MockLowLevelHttpRequest.response
HTTP response to return fromMockLowLevelHttpRequest.execute()
.Methods in com.google.api.client.testing.http that return MockLowLevelHttpResponseModifier and TypeMethodDescriptionAdds a header to the response.(package private) MockLowLevelHttpResponse
MockHttpTransport.Builder.getLowLevelHttpResponse()
Returns theMockLowLevelHttpResponse
that is associated with thisMockHttpTransport.Builder
, ornull
if no such instance exists.MockLowLevelHttpRequest.getResponse()
HTTP response to return fromMockLowLevelHttpRequest.execute()
.MockLowLevelHttpResponse.setContent
(byte[] byteContent) Sets the response content to the given byte array.MockLowLevelHttpResponse.setContent
(InputStream content) Sets the input stream content of HTTP response ornull
for none.MockLowLevelHttpResponse.setContent
(String stringContent) Sets the response content to the given content string.MockLowLevelHttpResponse.setContentEncoding
(String contentEncoding) Sets the content encoding ornull
for none.MockLowLevelHttpResponse.setContentLength
(long contentLength) Sets the content length or-1
for unknown.MockLowLevelHttpResponse.setContentType
(String contentType) Sets the content type of HTTP response ornull
for none.MockLowLevelHttpResponse.setHeaderNames
(List<String> headerNames) Sets the list of header names of HTTP response.MockLowLevelHttpResponse.setHeaderValues
(List<String> headerValues) Sets the list of header values of HTTP response.MockLowLevelHttpResponse.setReasonPhrase
(String reasonPhrase) Sets the HTTP reason phrase ornull
for none.MockLowLevelHttpResponse.setStatusCode
(int statusCode) Sets the status code of HTTP response.MockLowLevelHttpResponse.setZeroContent()
Sets the content tonull
and the content length to 0.Methods in com.google.api.client.testing.http with parameters of type MockLowLevelHttpResponseModifier and TypeMethodDescriptionMockHttpTransport.Builder.setLowLevelHttpResponse
(MockLowLevelHttpResponse lowLevelHttpResponse) Sets theMockLowLevelHttpResponse
that will be the result when theMockLowLevelHttpRequest
returned byMockHttpTransport.buildRequest(java.lang.String, java.lang.String)
is executed.MockLowLevelHttpRequest.setResponse
(MockLowLevelHttpResponse response) Sets the HTTP response to return fromMockLowLevelHttpRequest.execute()
.