GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
USER_AGENT_SUFFIX
Constructor and Description |
---|
MockGoogleJsonClientRequest(AbstractGoogleJsonClient client,
String method,
String uriTemplate,
Object content,
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(HttpHeaders headers)
Sets the HTTP headers used for the Google client request.
|
getJsonContent, newExceptionOnError, queue, set
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public MockGoogleJsonClientRequest(AbstractGoogleJsonClient client, String method, String uriTemplate, Object 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
- A POJO that can be serialized into JSON or null
for nonepublic MockGoogleJsonClient getAbstractGoogleClient()
AbstractGoogleClientRequest
Overriding 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(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–2020 Google. All rights reserved.