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.json |
JSON HTTP library based on the pluggable HTTP library.
|
com.google.api.client.http.xml |
XML HTTP library based on the pluggable HTTP library.
|
com.google.api.client.http.xml.atom |
Atom XML HTTP library based on the pluggable HTTP library.
|
com.google.api.client.testing.http |
Testing utilities used for writing tests based on this library.
|
Modifier and Type | Method and 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 during
getContent() . |
HttpResponse |
HttpResponse.setLoggingEnabled(boolean loggingEnabled)
Sets whether logging should be enabled on this response.
|
Modifier and Type | Method and Description |
---|---|
Future<HttpResponse> |
HttpRequest.executeAsync()
Executes this request asynchronously using
HttpRequest.executeAsync(Executor) in a single separate
thread using Executors.newSingleThreadExecutor() . |
Future<HttpResponse> |
HttpRequest.executeAsync(Executor exec)
Executes this request asynchronously using
HttpRequest.executeAsync(Executor) in a single separate
thread using the supplied Executor. |
Modifier and Type | Method and Description |
---|---|
static StringBuilder |
HttpResponseException.computeMessageBuffer(HttpResponse response)
Returns an exception message string builder to use for the given HTTP response.
|
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 of
HttpRequest.execute() before returning a successful response or
throwing an exception for an unsuccessful response. |
<T> T |
HttpParser.parse(HttpResponse response,
Class<T> dataClass)
Deprecated.
Parses the given HTTP response into a new instance of the the given data class of key/value
pairs.
|
Constructor and Description |
---|
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.
|
HttpResponseException(HttpResponse response,
String message)
Constructor that allows an alternative detail message to be used.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
JsonHttpRequest.executeUnparsed()
Deprecated.
Sends the request to the server and returns the raw
HttpResponse . |
protected HttpResponse |
JsonHttpClient.executeUnparsed(HttpMethod method,
GenericUrl url,
Object body)
Deprecated.
Builds and executes a
HttpRequest . |
protected HttpResponse |
JsonHttpClient.executeUnparsed(HttpRequest request)
Deprecated.
Executes the specified
HttpRequest . |
Modifier and Type | Method and Description |
---|---|
<T> T |
JsonHttpParser.parse(HttpResponse response,
Class<T> dataClass)
Deprecated.
|
static JsonParser |
JsonHttpParser.parserForResponse(JsonFactory jsonFactory,
HttpResponse response)
Deprecated.
Returns a JSON parser to use for parsing the given HTTP response.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
XmlHttpParser.parse(HttpResponse response,
Class<T> dataClass)
Deprecated.
Default implementation parses the content of the response into the data class of key/value
pairs, but subclasses may override.
|
Modifier and Type | Method and Description |
---|---|
static <T,E> AtomFeedParser<T,E> |
AtomFeedParser.create(HttpResponse response,
XmlNamespaceDictionary namespaceDictionary,
Class<T> feedClass,
Class<E> entryClass)
Parses the given HTTP response using the given feed class and entry class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MockHttpUnsuccessfulResponseHandler.handleResponse(HttpRequest request,
HttpResponse response,
boolean supportsRetry) |
Copyright © 2011-2012 Google. All Rights Reserved.