Uses of Class
com.google.api.client.http.HttpResponse
-
Packages that use HttpResponse Package Description com.google.api.client.http Subset of HTTP 1.1 needed from the specification in RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1.com.google.api.client.http.xml.atom Beta
Atom XML HTTP library based on the pluggable HTTP library.com.google.api.client.testing.http Beta
Testing utilities used for writing tests based on this library. -
-
Uses of HttpResponse in com.google.api.client.http
Methods in com.google.api.client.http that return HttpResponse Modifier and Type Method Description HttpResponse
HttpRequest. execute()
Execute the HTTP request and returns the HTTP response.HttpResponse
HttpResponse. setContentLoggingLimit(int contentLoggingLimit)
Set the limit to the content size that will be logged duringgetContent()
.HttpResponse
HttpResponse. setLoggingEnabled(boolean loggingEnabled)
Sets whether logging should be enabled on this response.Methods in com.google.api.client.http that return types with arguments of type HttpResponse Modifier and Type Method Description java.util.concurrent.Future<HttpResponse>
HttpRequest. executeAsync()
Beta
Executes this request asynchronously usingHttpRequest.executeAsync(Executor)
in a single separate thread usingExecutors.newFixedThreadPool(int)
.java.util.concurrent.Future<HttpResponse>
HttpRequest. executeAsync(java.util.concurrent.Executor executor)
Beta
Executes this request asynchronously in a single separate thread using the supplied executor.Methods in com.google.api.client.http with parameters of type HttpResponse Modifier and Type Method Description static java.lang.StringBuilder
HttpResponseException. computeMessageBuffer(HttpResponse response)
Returns an exception message string builder to use for the given HTTP response.boolean
HttpBackOffUnsuccessfulResponseHandler. handleResponse(HttpRequest request, HttpResponse response, boolean supportsRetry)
Handler that will be invoked when an abnormal response is received.boolean
HttpUnsuccessfulResponseHandler. handleResponse(HttpRequest request, HttpResponse response, boolean supportsRetry)
Handler that will be invoked when an abnormal response is received.void
HttpResponseInterceptor. interceptResponse(HttpResponse response)
Invoked at the end ofHttpRequest.execute()
before returning a successful response or throwing an exception for an unsuccessful response.boolean
HttpBackOffUnsuccessfulResponseHandler.BackOffRequired. isRequired(HttpResponse response)
Invoked when an abnormal response is received and determines if back-off is required.Constructors in com.google.api.client.http with parameters of type HttpResponse Constructor Description Builder(HttpResponse response)
HttpResponseException(HttpResponse response)
Constructor that constructs a detail message from the given HTTP response that includes the status code, status message and HTTP response content. -
Uses of HttpResponse in com.google.api.client.http.xml.atom
Methods in com.google.api.client.http.xml.atom with parameters of type HttpResponse Modifier and Type Method Description static <T,E>
AtomFeedParser<T,E>AtomFeedParser. create(HttpResponse response, XmlNamespaceDictionary namespaceDictionary, java.lang.Class<T> feedClass, java.lang.Class<E> entryClass)
Parses the given HTTP response using the given feed class and entry class. -
Uses of HttpResponse in com.google.api.client.testing.http
Methods in com.google.api.client.testing.http with parameters of type HttpResponse Modifier and Type Method Description boolean
MockHttpUnsuccessfulResponseHandler. handleResponse(HttpRequest request, HttpResponse response, boolean supportsRetry)
-