|
||||||||||
| 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.
| 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
"X-GData-Client" header. |
String |
gdataKey
"X-GData-Key" header, which must be of the form "key=[developerId]". |
String |
gdataVersion
"GData-Version" header. |
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. |
String |
googCopySource
"x-goog-copy-source" header that specifies the destination bucket and object for a copy
operation. |
String |
googCopySourceIfMatch
"x-goog-copy-source-if-match" header that specifies the conditions for a copy
operation. |
String |
googCopySourceIfModifiedSince
"x-goog-copy-source-if-modified-since" header that specifies the conditions for a copy
operation. |
String |
googCopySourceIfNoneMatch
"x-goog-copy-source-if-none-match" header that specifies the conditions for a copy
operation. |
String |
googCopySourceIfUnmodifiedSince
"x-goog-copy-source-if-unmodified-since" header that specifies the conditions for a
copy operation. |
String |
googDate
"x-goog-date" header that specifies a time stamp for authenticated requests. |
String |
googMetadataDirective
"x-goog-metadata-directive" header that specifies metadata handling during a copy
operation. |
String |
methodOverride
"X-HTTP-Method-Override" header. |
String |
slug
Escaped "Slug" header value, which must be escaped using SLUG_ESCAPER. |
static PercentEscaper |
SLUG_ESCAPER
Escaper for the slug header. |
| Constructor Summary | |
|---|---|
GoogleHeaders()
|
|
| Method Summary | |
|---|---|
static String |
getGoogleLoginValue(String authToken)
Returns Google Login "Authorization" header value based on the given authentication
token. |
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 |
setGoogleLogin(String authToken)
Sets the Google Login "Authorization" header for the given authentication token. |
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.
public String gdataVersion
"GData-Version" header.
public String slug
"Slug" header value, which must be escaped using SLUG_ESCAPER.
setSlugFromFileName(String)public String gdataClient
"X-GData-Client" header.
public String gdataKey
"X-GData-Key" header, which must be of the form "key=[developerId]".
setDeveloperId(String)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.
public String googCopySource
"x-goog-copy-source" header that specifies the destination bucket and object for a copy
operation.
public String googCopySourceIfMatch
"x-goog-copy-source-if-match" header that specifies the conditions for a copy
operation.
public String googCopySourceIfNoneMatch
"x-goog-copy-source-if-none-match" header that specifies the conditions for a copy
operation.
public String googCopySourceIfModifiedSince
"x-goog-copy-source-if-modified-since" header that specifies the conditions for a copy
operation.
public String googCopySourceIfUnmodifiedSince
"x-goog-copy-source-if-unmodified-since" header that specifies the conditions for a
copy operation.
public String googDate
"x-goog-date" header that specifies a time stamp for authenticated requests.
public String googMetadataDirective
"x-goog-metadata-directive" header that specifies metadata handling during a copy
operation.
public String methodOverride
"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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||