|
||||||||||
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
public class HttpHeaders
Stores HTTP headers used in an HTTP request or response, as defined in Header Field Definitions.
null
is not allowed as a name or value of a header. Names are case-insensitive.
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> |
Fields inherited from class com.google.api.client.util.GenericData |
---|
unknownFields |
Constructor Summary | |
---|---|
HttpHeaders()
|
Method Summary | |
---|---|
HttpHeaders |
clone()
Makes a "deep" clone of the generic data, in which the clone is completely independent of the original. |
String |
getAccept()
Returns the "Accept" header or null for none. |
String |
getAcceptEncoding()
Returns the "Accept-Encoding" header or null for none. |
String |
getAuthenticate()
Returns the "WWW-Authenticate" header or null for none. |
String |
getAuthorization()
Returns the "Authorization" header or null for none. |
String |
getCacheControl()
Returns the "Cache-Control" header or null for none. |
String |
getContentEncoding()
Returns the "Content-Encoding" header or null for none. |
String |
getContentLength()
Returns the "Content-Length" header or null for none. |
String |
getContentMD5()
Returns the "Content-MD5" header or null for none. |
String |
getContentRange()
Returns the "Content-Range" header or null for none. |
String |
getContentType()
Returns the "Content-Type" header or null for none. |
String |
getDate()
Returns the "Date" header or null for none. |
String |
getETag()
Returns the "ETag" header or null for none. |
String |
getExpires()
Returns the "Expires" header or null for none. |
String |
getIfMatch()
Returns the "If-Match" header or null for none. |
String |
getIfModifiedSince()
Returns the "If-Modified-Since" header or null for none. |
String |
getIfNoneMatch()
Returns the "If-None-Match" header or null for none. |
String |
getIfUnmodifiedSince()
Returns the "If-Unmodified-Since" header or null for none. |
String |
getLastModified()
Returns the "Last-Modified" header or null for none. |
String |
getLocation()
Returns the "Location" header or null for none. |
String |
getMimeVersion()
Returns the "MIME-Version" header or null for none. |
String |
getRange()
Returns the "Range" header or null for none. |
String |
getRetryAfter()
Returns the "Retry-After" header or null for none. |
String |
getUserAgent()
Returns the "User-Agent" header or null for none. |
void |
setAccept(String accept)
Sets the "Accept" header or null for none. |
void |
setAcceptEncoding(String acceptEncoding)
Sets the "Accept-Encoding" header or null for none. |
void |
setAuthenticate(String authenticate)
Sets the "WWW-Authenticate" header or null for none. |
void |
setAuthorization(String authorization)
Sets the "Authorization" header or null for none. |
void |
setBasicAuthentication(String username,
String password)
Sets the authorization header as specified in Basic Authentication Scheme. |
void |
setCacheControl(String cacheControl)
Sets the "Cache-Control" header or null for none. |
void |
setContentEncoding(String contentEncoding)
Sets the "Content-Encoding" header or null for none. |
void |
setContentLength(String contentLength)
Sets the "Content-Length" header or null for none. |
void |
setContentMD5(String contentMD5)
Sets the "Content-MD5" header or null for none. |
void |
setContentRange(String contentRange)
Sets the "Content-Range" header or null for none. |
void |
setContentType(String contentType)
Sets the "Content-Type" header or null for none. |
void |
setDate(String date)
Sets the "Date" header or null for none. |
void |
setETag(String etag)
Sets the "ETag" header or null for none. |
void |
setExpires(String expires)
Sets the "Expires" header or null for none. |
void |
setIfMatch(String ifMatch)
Sets the "If-Match" header or null for none. |
void |
setIfModifiedSince(String ifModifiedSince)
Sets the "If-Modified-Since" header or null for none. |
void |
setIfNoneMatch(String ifNoneMatch)
Sets the "If-None-Match" header or null for none. |
void |
setIfUnmodifiedSince(String ifUnmodifiedSince)
Sets the "If-Unmodified-Since" header or null for none. |
void |
setLastModified(String lastModified)
Sets the "Last-Modified" header or null for none. |
void |
setLocation(String location)
Sets the "Location" header or null for none. |
void |
setMimeVersion(String mimeVersion)
Sets the "MIME-Version" header or null for none. |
void |
setRange(String range)
Sets the "Range" header or null for none. |
void |
setRetryAfter(String retryAfter)
Sets the "Retry-After" header or null for none. |
void |
setUserAgent(String userAgent)
Sets the "User-Agent" 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 |
---|
@Deprecated public String accept
getAccept()
or setAccept(java.lang.String)
"Accept"
header.
@Deprecated public String acceptEncoding
getAcceptEncoding()
or
setAcceptEncoding(java.lang.String)
"Accept-Encoding"
header. By default, this is "gzip"
.
@Deprecated public String authorization
getAuthorization()
or
setAuthorization(java.lang.String)
"Authorization"
header.
@Deprecated public String cacheControl
getCacheControl()
or
setCacheControl(java.lang.String)
"Cache-Control"
header.
@Deprecated public String contentEncoding
getContentEncoding()
or
setContentEncoding(java.lang.String)
"Content-Encoding"
header.
@Deprecated public String contentLength
getContentLength()
or
setContentLength(java.lang.String)
"Content-Length"
header.
@Deprecated public String contentMD5
getContentMD5()
or
setContentMD5(java.lang.String)
"Content-MD5"
header.
@Deprecated public String contentRange
getContentRange()
or
setContentRange(java.lang.String)
"Content-Range"
header.
@Deprecated public String contentType
getContentType()
or
setContentType(java.lang.String)
"Content-Type"
header.
@Deprecated public String date
getDate()
or setDate(java.lang.String)
"Date"
header.
@Deprecated public String etag
getETag()
or setETag(java.lang.String)
"ETag"
header.
@Deprecated public String expires
getExpires()
or
setExpires(java.lang.String)
"Expires"
header.
@Deprecated public String ifModifiedSince
getIfModifiedSince()
or
setIfModifiedSince(java.lang.String)
"If-Modified-Since"
header.
@Deprecated public String ifMatch
getIfMatch()
or
setIfMatch(java.lang.String)
"If-Match"
header.
@Deprecated public String ifNoneMatch
getIfNoneMatch()
or
setIfNoneMatch(java.lang.String)
"If-None-Match"
header.
@Deprecated public String ifUnmodifiedSince
getIfUnmodifiedSince()
or
setIfUnmodifiedSince(java.lang.String)
"If-Unmodified-Since"
header.
@Deprecated public String lastModified
getLastModified()
or
setLastModified(java.lang.String)
"Last-Modified"
header.
@Deprecated public String location
getLocation()
or
setLocation(java.lang.String)
"Location"
header.
@Deprecated public String mimeVersion
getMimeVersion()
or
setMimeVersion(java.lang.String)
"MIME-Version"
header.
@Deprecated public String range
getRange()
or setRange(java.lang.String)
"Range"
header.
@Deprecated public String retryAfter
getRetryAfter()
or
setRetryAfter(java.lang.String)
"Retry-After"
header.
@Deprecated public String userAgent
getUserAgent()
or
setUserAgent(java.lang.String)
"User-Agent"
header.
@Deprecated public String authenticate
getAuthenticate()
or
setAuthenticate(java.lang.String)
"WWW-Authenticate"
header.
Constructor Detail |
---|
public HttpHeaders()
Method Detail |
---|
public HttpHeaders clone()
GenericData
clone
in class GenericData
public final String getAccept()
"Accept"
header or null
for none.
public final void setAccept(String accept)
"Accept"
header or null
for none.
public final String getAcceptEncoding()
"Accept-Encoding"
header or null
for none.
public final void setAcceptEncoding(String acceptEncoding)
"Accept-Encoding"
header or null
for none.
By default, this is "gzip"
.
public final String getAuthorization()
"Authorization"
header or null
for none.
public final void setAuthorization(String authorization)
"Authorization"
header or null
for none.
public final String getCacheControl()
"Cache-Control"
header or null
for none.
public final void setCacheControl(String cacheControl)
"Cache-Control"
header or null
for none.
public final String getContentEncoding()
"Content-Encoding"
header or null
for none.
public final void setContentEncoding(String contentEncoding)
"Content-Encoding"
header or null
for none.
public final String getContentLength()
"Content-Length"
header or null
for none.
public final void setContentLength(String contentLength)
"Content-Length"
header or null
for none.
public final String getContentMD5()
"Content-MD5"
header or null
for none.
public final void setContentMD5(String contentMD5)
"Content-MD5"
header or null
for none.
public final String getContentRange()
"Content-Range"
header or null
for none.
public final void setContentRange(String contentRange)
"Content-Range"
header or null
for none.
public final String getContentType()
"Content-Type"
header or null
for none.
public final void setContentType(String contentType)
"Content-Type"
header or null
for none.
public final String getDate()
"Date"
header or null
for none.
public final void setDate(String date)
"Date"
header or null
for none.
public final String getETag()
"ETag"
header or null
for none.
public final void setETag(String etag)
"ETag"
header or null
for none.
public final String getExpires()
"Expires"
header or null
for none.
public final void setExpires(String expires)
"Expires"
header or null
for none.
public final String getIfModifiedSince()
"If-Modified-Since"
header or null
for none.
public final void setIfModifiedSince(String ifModifiedSince)
"If-Modified-Since"
header or null
for none.
public final String getIfMatch()
"If-Match"
header or null
for none.
public final void setIfMatch(String ifMatch)
"If-Match"
header or null
for none.
public final String getIfNoneMatch()
"If-None-Match"
header or null
for none.
public final void setIfNoneMatch(String ifNoneMatch)
"If-None-Match"
header or null
for none.
public final String getIfUnmodifiedSince()
"If-Unmodified-Since"
header or null
for none.
public final void setIfUnmodifiedSince(String ifUnmodifiedSince)
"If-Unmodified-Since"
header or null
for none.
public final String getLastModified()
"Last-Modified"
header or null
for none.
public final void setLastModified(String lastModified)
"Last-Modified"
header or null
for none.
public final String getLocation()
"Location"
header or null
for none.
public final void setLocation(String location)
"Location"
header or null
for none.
public final String getMimeVersion()
"MIME-Version"
header or null
for none.
public final void setMimeVersion(String mimeVersion)
"MIME-Version"
header or null
for none.
public final String getRange()
"Range"
header or null
for none.
public final void setRange(String range)
"Range"
header or null
for none.
public final String getRetryAfter()
"Retry-After"
header or null
for none.
public final void setRetryAfter(String retryAfter)
"Retry-After"
header or null
for none.
public final String getUserAgent()
"User-Agent"
header or null
for none.
public final void setUserAgent(String userAgent)
"User-Agent"
header or null
for none.
public final String getAuthenticate()
"WWW-Authenticate"
header or null
for none.
public final void setAuthenticate(String authenticate)
"WWW-Authenticate"
header or null
for none.
public final void setBasicAuthentication(String username, String password)
authorization
header as specified in Basic Authentication Scheme.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |