Package | Description |
---|---|
com.google.api.client.http |
Subset of HTTP 1.1 needed from the specification in RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1.
|
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
HttpHeaders.clone() |
HttpHeaders |
HttpRequest.getHeaders()
Returns the HTTP request headers.
|
HttpHeaders |
MultipartContent.Part.getHeaders()
Returns the HTTP headers or
null for none. |
HttpHeaders |
HttpResponse.getHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpResponseException.getHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpResponseException.Builder.getHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpRequest.getResponseHeaders()
Returns the HTTP response headers.
|
HttpHeaders |
HttpHeaders.set(java.lang.String fieldName,
java.lang.Object value) |
HttpHeaders |
HttpHeaders.setAccept(java.lang.String accept)
Sets the
"Accept" header or null for none. |
HttpHeaders |
HttpHeaders.setAcceptEncoding(java.lang.String acceptEncoding)
Sets the
"Accept-Encoding" header or null for none. |
HttpHeaders |
HttpHeaders.setAge(java.lang.Long age)
Sets the
"Age" header or null for none. |
HttpHeaders |
HttpHeaders.setAuthenticate(java.lang.String authenticate)
Sets the
"WWW-Authenticate" header or null for none. |
HttpHeaders |
HttpHeaders.setAuthorization(java.util.List<java.lang.String> authorization)
Sets the
"Authorization" header or null for none. |
HttpHeaders |
HttpHeaders.setAuthorization(java.lang.String authorization)
Sets the
"Authorization" header or null for none. |
HttpHeaders |
HttpHeaders.setBasicAuthentication(java.lang.String username,
java.lang.String password)
Sets the
authorization header as specified in Basic Authentication Scheme. |
HttpHeaders |
HttpHeaders.setCacheControl(java.lang.String cacheControl)
Sets the
"Cache-Control" header or null for none. |
HttpHeaders |
HttpHeaders.setContentEncoding(java.lang.String contentEncoding)
Sets the
"Content-Encoding" header or null for none. |
HttpHeaders |
HttpHeaders.setContentLength(java.lang.Long contentLength)
Sets the
"Content-Length" header or null for none. |
HttpHeaders |
HttpHeaders.setContentMD5(java.lang.String contentMD5)
Sets the
"Content-MD5" header or null for none. |
HttpHeaders |
HttpHeaders.setContentRange(java.lang.String contentRange)
Sets the
"Content-Range" header or null for none. |
HttpHeaders |
HttpHeaders.setContentType(java.lang.String contentType)
Sets the
"Content-Type" header or null for none. |
HttpHeaders |
HttpHeaders.setCookie(java.lang.String cookie)
Sets the
"Cookie" header or null for none. |
HttpHeaders |
HttpHeaders.setDate(java.lang.String date)
Sets the
"Date" header or null for none. |
HttpHeaders |
HttpHeaders.setETag(java.lang.String etag)
Sets the
"ETag" header or null for none. |
HttpHeaders |
HttpHeaders.setExpires(java.lang.String expires)
Sets the
"Expires" header or null for none. |
HttpHeaders |
HttpHeaders.setIfMatch(java.lang.String ifMatch)
Sets the
"If-Match" header or null for none. |
HttpHeaders |
HttpHeaders.setIfModifiedSince(java.lang.String ifModifiedSince)
Sets the
"If-Modified-Since" header or null for none. |
HttpHeaders |
HttpHeaders.setIfNoneMatch(java.lang.String ifNoneMatch)
Sets the
"If-None-Match" header or null for none. |
HttpHeaders |
HttpHeaders.setIfRange(java.lang.String ifRange)
Sets the
"If-Range" header or null for none. |
HttpHeaders |
HttpHeaders.setIfUnmodifiedSince(java.lang.String ifUnmodifiedSince)
Sets the
"If-Unmodified-Since" header or null for none. |
HttpHeaders |
HttpHeaders.setLastModified(java.lang.String lastModified)
Sets the
"Last-Modified" header or null for none. |
HttpHeaders |
HttpHeaders.setLocation(java.lang.String location)
Sets the
"Location" header or null for none. |
HttpHeaders |
HttpHeaders.setMimeVersion(java.lang.String mimeVersion)
Sets the
"MIME-Version" header or null for none. |
HttpHeaders |
HttpHeaders.setRange(java.lang.String range)
Sets the
"Range" header or null for none. |
HttpHeaders |
HttpHeaders.setRetryAfter(java.lang.String retryAfter)
Sets the
"Retry-After" header or null for none. |
HttpHeaders |
HttpHeaders.setUserAgent(java.lang.String userAgent)
Sets the
"User-Agent" header or null for none. |
Modifier and Type | Method and Description |
---|---|
void |
HttpHeaders.fromHttpHeaders(HttpHeaders headers)
Puts all headers of the
HttpHeaders object into this HttpHeaders object. |
boolean |
HttpRequest.handleRedirect(int statusCode,
HttpHeaders responseHeaders)
Sets up this request object to handle the necessary redirect if redirects are turned on, it is
a redirect status code and the header has a location.
|
static void |
HttpHeaders.serializeHeadersForMultipartRequests(HttpHeaders headers,
java.lang.StringBuilder logbuf,
java.util.logging.Logger logger,
java.io.Writer writer)
Serializes headers to an
Writer for Multi-part requests. |
HttpRequest |
HttpRequest.setHeaders(HttpHeaders headers)
Sets the HTTP request headers.
|
MultipartContent.Part |
MultipartContent.Part.setHeaders(HttpHeaders headers)
Sets the HTTP headers or
null for none. |
HttpResponseException.Builder |
HttpResponseException.Builder.setHeaders(HttpHeaders headers)
Sets the HTTP response headers.
|
HttpRequest |
HttpRequest.setResponseHeaders(HttpHeaders responseHeaders)
Sets the HTTP response headers.
|
Constructor and Description |
---|
Builder(int statusCode,
java.lang.String statusMessage,
HttpHeaders headers) |
Part(HttpHeaders headers,
HttpContent content) |
Copyright © 2011-2018 Google. All Rights Reserved.