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.
|
com.google.api.client.http.json |
JSON HTTP library based on the pluggable HTTP library.
|
com.google.api.client.http.xml |
XML HTTP library based on the pluggable HTTP library.
|
com.google.api.client.http.xml.atom |
Atom XML HTTP library based on the pluggable HTTP library.
|
com.google.api.client.testing.http |
Testing utilities used for writing tests based on this library.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractHttpContent
Abstract implementation of an HTTP content with typical options.
|
class |
AbstractInputStreamContent
Serializes HTTP request content from an input stream into an output stream.
|
class |
ByteArrayContent
Concrete implementation of
AbstractInputStreamContent that generates repeatable input
streams based on the contents of byte array. |
class |
EmptyContent
Empty HTTP content of length zero just to force
HttpRequest.execute() to add the header
Content-Length: 0 . |
class |
FileContent
Concrete implementation of
AbstractInputStreamContent that generates repeatable input
streams based on the contents of a file. |
class |
InputStreamContent
Concrete implementation of
AbstractInputStreamContent that simply handles the transfer of
data from an input stream to an output stream. |
class |
MultipartContent
Serializes MIME multipart content as specified by RFC 2387: The MIME Multipart/Related Content-type
and RFC 2046: Multipurpose Internet
Mail Extensions: The Multipart/mixed (primary) subtype.
|
class |
MultipartRelatedContent
Deprecated.
(scheduled to be removed in 1.15) Use
MultipartContent instead. |
class |
UrlEncodedContent
Implements support for HTTP form content encoding serialization of type
application/x-www-form-urlencoded as specified in the HTML 4.0 Specification. |
Modifier and Type | Method and Description |
---|---|
HttpContent |
HttpRequest.getContent()
Returns the HTTP request content or
null for none. |
HttpContent |
MultipartContent.Part.getContent()
Returns the HTTP content or
null for none. |
Modifier and Type | Method and Description |
---|---|
Collection<HttpContent> |
MultipartRelatedContent.getParts()
Deprecated.
Returns the HTTP content parts.
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
HttpRequestFactory.buildPatchRequest(GenericUrl url,
HttpContent content)
Builds a
PATCH request for the given URL and content. |
HttpRequest |
HttpRequestFactory.buildPostRequest(GenericUrl url,
HttpContent content)
Builds a
POST request for the given URL and content. |
HttpRequest |
HttpRequestFactory.buildPutRequest(GenericUrl url,
HttpContent content)
Builds a
PUT request for the given URL and content. |
HttpRequest |
HttpRequestFactory.buildRequest(String requestMethod,
GenericUrl url,
HttpContent content)
Builds a request for the given HTTP method, URL, and content.
|
static long |
AbstractHttpContent.computeLength(HttpContent content)
Returns the computed content length based using
IOUtils.computeLength(StreamingContent)
or instead -1 if retrySupported() is false because the
stream must not be read twice. |
HttpRequest |
HttpRequest.setContent(HttpContent content)
Sets the HTTP request content or
null for none. |
void |
LowLevelHttpRequest.setContent(HttpContent content)
Deprecated.
(scheduled to be removed in 1.15) Use
LowLevelHttpRequest.setContentLength(long) ,
LowLevelHttpRequest.setContentEncoding(String) , LowLevelHttpRequest.setContentType(String) , and
LowLevelHttpRequest.setStreamingContent(StreamingContent) instead. |
MultipartContent.Part |
MultipartContent.Part.setContent(HttpContent content)
Sets the HTTP content or
null for none. |
Modifier and Type | Method and Description |
---|---|
MultipartContent |
MultipartContent.setContentParts(Collection<? extends HttpContent> contentParts)
Sets the HTTP content parts of the HTTP multipart request, where each part is assumed to have
no HTTP headers and no encoding.
|
Constructor and Description |
---|
MultipartContent.Part(HttpContent content) |
MultipartContent.Part(HttpHeaders headers,
HttpContent content) |
MultipartRelatedContent(HttpContent firstPart,
HttpContent... otherParts)
Deprecated.
|
MultipartRelatedContent(HttpContent firstPart,
HttpContent... otherParts)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
JsonHttpContent
Serializes JSON HTTP content based on the data key/value mapping object for an item.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractXmlHttpContent
Abstract serializer for XML HTTP content based on the data key/value mapping object for an item.
|
class |
XmlHttpContent
Serializes XML HTTP content based on the data key/value mapping object for an item.
|
Modifier and Type | Class and Description |
---|---|
class |
AtomContent
Serializes Atom XML HTTP content based on the data key/value mapping object for an Atom entry.
|
Modifier and Type | Class and Description |
---|---|
class |
MockHttpContent
Mock for
HttpContent . |
Modifier and Type | Method and Description |
---|---|
HttpContent |
MockLowLevelHttpRequest.getContent()
Deprecated.
(scheduled to be removed in 1.15) Use
LowLevelHttpRequest.getContentLength() ,
LowLevelHttpRequest.getContentEncoding() , LowLevelHttpRequest.getContentType() , or
LowLevelHttpRequest.getStreamingContent() instead. |
Modifier and Type | Method and Description |
---|---|
void |
MockLowLevelHttpRequest.setContent(HttpContent content)
Deprecated.
|
Copyright © 2011-2013 Google. All Rights Reserved.