public abstract class Oauth2Request<T> extends AbstractGoogleJsonClientRequest<T>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
USER_AGENT_SUFFIX
Constructor and Description |
---|
Oauth2Request(Oauth2 client,
String method,
String uriTemplate,
Object content,
Class<T> responseClass) |
Modifier and Type | Method and Description |
---|---|
Oauth2 |
getAbstractGoogleClient() |
String |
getAlt()
Data format for the response.
|
String |
getFields()
Selector specifying which fields to include in a partial response.
|
String |
getKey()
API key.
|
String |
getOauthToken()
OAuth 2.0 token for the current user.
|
Boolean |
getPrettyPrint()
Returns response with indentations and line breaks.
|
String |
getQuotaUser()
An opaque string that represents a user for quota purposes.
|
String |
getUserIp()
Deprecated.
|
Oauth2Request<T> |
set(String parameterName,
Object value) |
Oauth2Request<T> |
setAlt(String alt)
Data format for the response.
|
Oauth2Request<T> |
setDisableGZipContent(boolean disableGZipContent) |
Oauth2Request<T> |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Oauth2Request<T> |
setKey(String key)
API key.
|
Oauth2Request<T> |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Oauth2Request<T> |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Oauth2Request<T> |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Oauth2Request<T> |
setRequestHeaders(HttpHeaders headers) |
Oauth2Request<T> |
setUserIp(String userIp)
Deprecated.
|
getJsonContent, newExceptionOnError, queue
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 Oauth2Request(Oauth2 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 noneresponseClass
- response class to parse intopublic String getAlt()
public Oauth2Request<T> setAlt(String alt)
public String getFields()
public Oauth2Request<T> setFields(String fields)
public String getKey()
public Oauth2Request<T> setKey(String key)
public String getOauthToken()
public Oauth2Request<T> setOauthToken(String oauthToken)
public Boolean getPrettyPrint()
public Oauth2Request<T> setPrettyPrint(Boolean prettyPrint)
public String getQuotaUser()
public Oauth2Request<T> setQuotaUser(String quotaUser)
public String getUserIp()
public Oauth2Request<T> setUserIp(String userIp)
public final Oauth2 getAbstractGoogleClient()
getAbstractGoogleClient
in class AbstractGoogleJsonClientRequest<T>
public Oauth2Request<T> setDisableGZipContent(boolean disableGZipContent)
setDisableGZipContent
in class AbstractGoogleJsonClientRequest<T>
public Oauth2Request<T> setRequestHeaders(HttpHeaders headers)
setRequestHeaders
in class AbstractGoogleJsonClientRequest<T>
public Oauth2Request<T> set(String parameterName, Object value)
set
in class AbstractGoogleJsonClientRequest<T>
Copyright © 2011–2022 Google. All rights reserved.