HttpHeaders@Deprecated public class GoogleHeaders extends com.google.api.client.http.HttpHeaders
Implementation is not thread-safe.
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static com.google.api.client.util.escape.PercentEscaper |
SLUG_ESCAPER
Deprecated.
Escaper for the
slug header. |
| Constructor and Description |
|---|
GoogleHeaders()
Deprecated.
Creates an empty GoogleHeaders object.
|
GoogleHeaders(com.google.api.client.http.HttpHeaders headers)
Deprecated.
Creates a GoogleHeaders object using the headers present in the specified
HttpHeaders. |
| Modifier and Type | Method and Description |
|---|---|
String |
getGDataClient()
Deprecated.
Returns the
"X-GData-Client" header. |
String |
getGDataKey()
Deprecated.
Returns the
"X-GData-Key" header, which must be of the form "key=[developerId]"
. |
String |
getGDataVersion()
Deprecated.
Returns the
"GData-Version" header. |
static String |
getGoogleLoginValue(String authToken)
Deprecated.
(scheduled to be removed in 1.14) Use
ClientLogin.getAuthorizationHeaderValue |
String |
getMethodOverride()
Deprecated.
Returns the
"X-HTTP-Method-Override" header. |
String |
getSlug()
Deprecated.
Returns the escaped
"Slug" header value, which must be escaped using
SLUG_ESCAPER. |
Long |
getUploadContentLength()
Deprecated.
Returns the
"X-Upload-Content-Length" header or null for none. |
String |
getUploadContentType()
Deprecated.
Returns the
"X-Upload-Content-Type" header or null for none. |
void |
setApplicationName(String applicationName)
Deprecated.
Sets the
"User-Agent" header of the form
"[company-id]-[app-name]/[app-version]", for example "Google-Sample/1.0". |
void |
setDeveloperId(String developerId)
Deprecated.
Sets the
gdataKey header using the given developer ID. |
void |
setGDataClient(String gdataClient)
Deprecated.
Sets the
"X-GData-Client" header. |
void |
setGDataKey(String gdataKey)
Deprecated.
Sets the
"X-GData-Key" header, which must be of the form "key=[developerId]". |
void |
setGDataVersion(String gdataVersion)
Deprecated.
Sets the
"GData-Version" header. |
void |
setGoogleLogin(String authToken)
Deprecated.
Sets the Google Login
"Authorization" header for the given authentication token. |
void |
setMethodOverride(String methodOverride)
Deprecated.
Sets the
"X-HTTP-Method-Override" header. |
void |
setSlug(String slug)
Deprecated.
Sets the escaped
"Slug" header value, which must be escaped using
SLUG_ESCAPER. |
void |
setSlugFromFileName(String fileName)
Deprecated.
Sets the
"Slug" header for the given file name, properly escaping the header value. |
void |
setUploadContentLength(long uploadContentLength)
Deprecated.
|
void |
setUploadContentLength(Long uploadContentLength)
Deprecated.
Sets the
"X-Upload-Content-Length" header or null for none. |
void |
setUploadContentType(String uploadContentType)
Deprecated.
Sets the
"X-Upload-Content-Type" header or null for none. |
clone, fromHttpHeaders, fromHttpResponse, getAccept, getAcceptEncoding, getAuthenticate, getAuthorization, getAuthorizationAsList, getCacheControl, getContentEncoding, getContentLength, getContentMD5, getContentRange, getContentType, getCookie, getDate, getETag, getExpires, getFirstHeaderStringValue, getHeaderStringValues, getIfMatch, getIfModifiedSince, getIfNoneMatch, getIfUnmodifiedSince, getLastModified, getLocation, getMimeVersion, getRange, getRetryAfter, getUserAgent, serializeHeadersForMultipartRequests, set, setAccept, setAcceptEncoding, setAuthenticate, setAuthorization, setAuthorization, setBasicAuthentication, setCacheControl, setContentEncoding, setContentLength, setContentMD5, setContentRange, setContentType, setCookie, setDate, setETag, setExpires, setIfMatch, setIfModifiedSince, setIfNoneMatch, setIfUnmodifiedSince, setLastModified, setLocation, setMimeVersion, setRange, setRetryAfter, setUserAgententrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuespublic static final com.google.api.client.util.escape.PercentEscaper SLUG_ESCAPER
slug header.public GoogleHeaders()
public GoogleHeaders(com.google.api.client.http.HttpHeaders headers)
HttpHeaders.headers - HTTP headers object including set headerspublic void setSlugFromFileName(String fileName)
"Slug" header for the given file name, properly escaping the header value. See
The Slug Header.public void setApplicationName(String applicationName)
"User-Agent" header of the form
"[company-id]-[app-name]/[app-version]", for example "Google-Sample/1.0".public void setDeveloperId(String developerId)
gdataKey header using the given developer ID.public void setGoogleLogin(String authToken)
"Authorization" header for the given authentication token.public final Long getUploadContentLength()
"X-Upload-Content-Length" header or null for none.
Upgrade warning: this method now returns a Long. In prior version 1.11 it returned a
long.
public final void setUploadContentLength(Long uploadContentLength)
"X-Upload-Content-Length" header or null for none.@Deprecated public final void setUploadContentLength(long uploadContentLength)
"X-Upload-Content-Length" header.public final String getUploadContentType()
"X-Upload-Content-Type" header or null for none.public final void setUploadContentType(String uploadContentType)
"X-Upload-Content-Type" header or null for none.@Deprecated public static String getGoogleLoginValue(String authToken)
ClientLogin.getAuthorizationHeaderValue"Authorization" header value based on the given authentication
token.public final String getGDataVersion()
"GData-Version" header.public final void setGDataVersion(String gdataVersion)
"GData-Version" header.public final String getSlug()
"Slug" header value, which must be escaped using
SLUG_ESCAPER.public final void setSlug(String slug)
"Slug" header value, which must be escaped using
SLUG_ESCAPER.public final String getGDataClient()
"X-GData-Client" header.public final void setGDataClient(String gdataClient)
"X-GData-Client" header.public final String getGDataKey()
"X-GData-Key" header, which must be of the form "key=[developerId]"
.public final void setGDataKey(String gdataKey)
"X-GData-Key" header, which must be of the form "key=[developerId]".public final String getMethodOverride()
"X-HTTP-Method-Override" header.public final void setMethodOverride(String methodOverride)
"X-HTTP-Method-Override" header.Copyright © 2010-2013 Google. All Rights Reserved.