|
||||||||||
| 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 com.google.api.client.util.GenericData |
|---|
GenericData.Flags |
| 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 |
gdataVersion
Deprecated. (scheduled to be made private in 1.11) Use getGDataVersion() or
setGDataVersion(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, getClassInfo, 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.
| 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 | |||||||||