|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.http.HttpHeaders
com.google.api.client.googleapis.GoogleHeaders
public class GoogleHeaders
HTTP headers for Google API's.
Implementation is not thread-safe.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary | |
---|---|
String |
gdataClient
Deprecated. (scheduled to be made private in 1.9) Use getGDataClient() or
setGDataClient(java.lang.String) |
String |
gdataKey
Deprecated. (scheduled to be made private in 1.9) Use getGDataKey() or
setGDataKey(java.lang.String) |
String |
gdataVersion
Deprecated. (scheduled to be made private in 1.9) Use getGDataVersion() or
setGDataVersion(java.lang.String) |
String |
googAcl
Deprecated. (scheduled to be removed in 1.9) |
String |
googCopySource
Deprecated. (scheduled to be removed in 1.9) |
String |
googCopySourceIfMatch
Deprecated. (scheduled to be removed in 1.9) |
String |
googCopySourceIfModifiedSince
Deprecated. (scheduled to be removed in 1.9) |
String |
googCopySourceIfNoneMatch
Deprecated. (scheduled to be removed in 1.9) |
String |
googCopySourceIfUnmodifiedSince
Deprecated. (scheduled to be removed in 1.9) |
String |
googDate
Deprecated. (scheduled to be removed in 1.9) |
String |
googMetadataDirective
Deprecated. (scheduled to be removed in 1.9) |
String |
methodOverride
Deprecated. (scheduled to be made private in 1.9) Use getMethodOverride() or
setMethodOverride(java.lang.String) |
String |
slug
Deprecated. (scheduled to be made private in 1.9) Use getSlug() or setSlug(java.lang.String) |
static PercentEscaper |
SLUG_ESCAPER
Escaper for the slug header. |
Constructor Summary | |
---|---|
GoogleHeaders()
|
Method Summary | |
---|---|
String |
getGDataClient()
Returns the "X-GData-Client" header. |
String |
getGDataKey()
Returns the "X-GData-Key" header, which must be of the form "key=[developerId]"
. |
String |
getGDataVersion()
Returns the "GData-Version" header. |
static String |
getGoogleLoginValue(String authToken)
Returns Google Login "Authorization" header value based on the given authentication
token. |
String |
getMethodOverride()
Returns the "X-HTTP-Method-Override" header. |
String |
getSlug()
Returns the escaped "Slug" header value, which must be escaped using
SLUG_ESCAPER . |
long |
getUploadContentLength()
Returns the "X-Upload-Content-Length" header or null for none. |
String |
getUploadContentType()
Returns the "X-Upload-Content-Type" header or null for none. |
void |
setApplicationName(String applicationName)
Sets the "User-Agent" header of the form
"[company-id]-[app-name]/[app-version]" , for example "Google-Sample/1.0" . |
void |
setDeveloperId(String developerId)
Sets the gdataKey header using the given developer ID. |
void |
setGDataClient(String gdataClient)
Sets the "X-GData-Client" header. |
void |
setGDataKey(String gdataKey)
Sets the "X-GData-Key" header, which must be of the form "key=[developerId]" . |
void |
setGDataVersion(String gdataVersion)
Sets the "GData-Version" header. |
void |
setGoogleLogin(String authToken)
Sets the Google Login "Authorization" header for the given authentication token. |
void |
setMethodOverride(String methodOverride)
Sets the "X-HTTP-Method-Override" header. |
void |
setSlug(String slug)
Sets the escaped "Slug" header value, which must be escaped using
SLUG_ESCAPER . |
void |
setSlugFromFileName(String fileName)
Sets the "Slug" header for the given file name, properly escaping the header value. |
void |
setUploadContentLength(long uploadContentLength)
Sets the "X-Upload-Content-Length" header or null for none. |
void |
setUploadContentType(String uploadContentType)
Sets the "X-Upload-Content-Type" header or null for none. |
Methods inherited from class com.google.api.client.util.GenericData |
---|
entrySet, get, getUnknownKeys, put, putAll, remove, set, setUnknownKeys |
Methods inherited from class java.util.AbstractMap |
---|
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PercentEscaper SLUG_ESCAPER
slug
header.
@Deprecated public String gdataVersion
getGDataVersion()
or
setGDataVersion(java.lang.String)
"GData-Version"
header.
@Deprecated public String slug
getSlug()
or setSlug(java.lang.String)
"Slug"
header value, which must be escaped using SLUG_ESCAPER
.
setSlugFromFileName(String)
@Deprecated public String gdataClient
getGDataClient()
or
setGDataClient(java.lang.String)
"X-GData-Client"
header.
@Deprecated public String gdataKey
getGDataKey()
or
setGDataKey(java.lang.String)
"X-GData-Key"
header, which must be of the form "key=[developerId]"
.
setDeveloperId(String)
@Deprecated public String googAcl
"x-goog-acl"
header that lets you apply predefined (canned) ACLs to a bucket or object
when you upload it or create it.
@Deprecated public String googCopySource
"x-goog-copy-source"
header that specifies the destination bucket and object for a copy
operation.
@Deprecated public String googCopySourceIfMatch
"x-goog-copy-source-if-match"
header that specifies the conditions for a copy
operation.
@Deprecated public String googCopySourceIfNoneMatch
"x-goog-copy-source-if-none-match"
header that specifies the conditions for a copy
operation.
@Deprecated public String googCopySourceIfModifiedSince
"x-goog-copy-source-if-modified-since"
header that specifies the conditions for a copy
operation.
@Deprecated public String googCopySourceIfUnmodifiedSince
"x-goog-copy-source-if-unmodified-since"
header that specifies the conditions for a
copy operation.
@Deprecated public String googDate
"x-goog-date"
header that specifies a time stamp for authenticated requests.
@Deprecated public String googMetadataDirective
"x-goog-metadata-directive"
header that specifies metadata handling during a copy
operation.
@Deprecated public String methodOverride
getMethodOverride()
or
setMethodOverride(java.lang.String)
"X-HTTP-Method-Override"
header.
Constructor Detail |
---|
public GoogleHeaders()
Method Detail |
---|
public 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.
public final void setUploadContentLength(long uploadContentLength)
"X-Upload-Content-Length"
header or null
for none.
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.
public static String getGoogleLoginValue(String authToken)
"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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |