T - type of the response@Beta public class MockGoogleJsonClientRequest<T> extends AbstractGoogleJsonClientRequest<T>
Beta com.google.api.client.util.GenericData.FlagsUSER_AGENT_SUFFIX| Constructor and Description |
|---|
MockGoogleJsonClientRequest(AbstractGoogleJsonClient client,
java.lang.String method,
java.lang.String uriTemplate,
java.lang.Object content,
java.lang.Class<T> responseClass) |
| Modifier and Type | Method and Description |
|---|---|
MockGoogleJsonClient |
getAbstractGoogleClient()
Returns the Google client.
|
MockGoogleJsonClientRequest<T> |
setDisableGZipContent(boolean disableGZipContent)
Sets whether to disable GZip compression of HTTP content.
|
MockGoogleJsonClientRequest<T> |
setRequestHeaders(com.google.api.client.http.HttpHeaders headers)
Sets the HTTP headers used for the Google client request.
|
getJsonContent, newExceptionOnError, queue, setbuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuespublic MockGoogleJsonClientRequest(AbstractGoogleJsonClient client, java.lang.String method, java.lang.String uriTemplate, java.lang.Object content, java.lang.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 - A POJO that can be serialized into JSON or null for nonepublic MockGoogleJsonClient getAbstractGoogleClient()
AbstractGoogleClientRequestOverriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
getAbstractGoogleClient in class AbstractGoogleJsonClientRequest<T>public MockGoogleJsonClientRequest<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 AbstractGoogleJsonClientRequest<T>public MockGoogleJsonClientRequest<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 AbstractGoogleJsonClientRequest<T>Copyright © 2010-2019 Google. All Rights Reserved.