T
- type of the responsepublic class MockGoogleClientRequest<T> extends AbstractGoogleClientRequest<T>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
MockGoogleClientRequest(AbstractGoogleClient client,
String method,
String uriTemplate,
com.google.api.client.http.HttpContent content,
Class<T> responseClass) |
Modifier and Type | Method and Description |
---|---|
MockGoogleClientRequest<T> |
set(String fieldName,
Object value) |
MockGoogleClientRequest<T> |
setDisableGZipContent(boolean disableGZipContent)
Sets whether to disable GZip compression of HTTP content.
|
MockGoogleClientRequest<T> |
setRequestHeaders(com.google.api.client.http.HttpHeaders headers)
Sets the HTTP headers used for the Google client request.
|
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getAbstractGoogleClient, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, newExceptionOnError, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
public MockGoogleClientRequest(AbstractGoogleClient client, String method, String uriTemplate, com.google.api.client.http.HttpContent content, Class<T> responseClass)
client
- Google clientmethod
- HTTP MethoduriTemplate
- URI template for the path relative to the base URL. If it starts with a "/"
the base path from the base URL will be stripped out. The URI template can also be a
full URL. URI template expansion is done using
UriTemplate.expand(String, String, Object, boolean)
content
- HTTP content or null
for noneresponseClass
- response class to parse intopublic MockGoogleClientRequest<T> setDisableGZipContent(boolean disableGZipContent)
AbstractGoogleClientRequest
By default it is false
.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setDisableGZipContent
in class AbstractGoogleClientRequest<T>
public MockGoogleClientRequest<T> setRequestHeaders(com.google.api.client.http.HttpHeaders headers)
AbstractGoogleClientRequest
These headers are set on the request after AbstractGoogleClientRequest.buildHttpRequest()
is called, this means that
HttpRequestInitializer.initialize(com.google.api.client.http.HttpRequest)
is called first.
Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
setRequestHeaders
in class AbstractGoogleClientRequest<T>
public MockGoogleClientRequest<T> set(String fieldName, Object value)
set
in class AbstractGoogleClientRequest<T>
Copyright © 2010-2013 Google. All Rights Reserved.