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) MockLowLevelHttpResponseMockHttpTransport.Builder.lowLevelHttpResponseTheMockLowLevelHttpResponsethat should be the result of theMockLowLevelHttpRequestto be returned byMockHttpTransport.buildRequest(String, String).private MockLowLevelHttpResponseMockHttpTransport.lowLevelHttpResponseTheMockLowLevelHttpResponseto be returned when thisMockHttpTransportexecutes the associated request.private MockLowLevelHttpResponseMockLowLevelHttpRequest.responseHTTP 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) MockLowLevelHttpResponseMockHttpTransport.Builder.getLowLevelHttpResponse()Returns theMockLowLevelHttpResponsethat is associated with thisMockHttpTransport.Builder, ornullif 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 ornullfor none.MockLowLevelHttpResponse.setContent(String stringContent) Sets the response content to the given content string.MockLowLevelHttpResponse.setContentEncoding(String contentEncoding) Sets the content encoding ornullfor none.MockLowLevelHttpResponse.setContentLength(long contentLength) Sets the content length or-1for unknown.MockLowLevelHttpResponse.setContentType(String contentType) Sets the content type of HTTP response ornullfor 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 ornullfor none.MockLowLevelHttpResponse.setStatusCode(int statusCode) Sets the status code of HTTP response.MockLowLevelHttpResponse.setZeroContent()Sets the content tonulland 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 theMockLowLevelHttpResponsethat will be the result when theMockLowLevelHttpRequestreturned byMockHttpTransport.buildRequest(String, String)is executed.MockLowLevelHttpRequest.setResponse(MockLowLevelHttpResponse response) Sets the HTTP response to return fromMockLowLevelHttpRequest.execute().