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.protobuf | |
com.google.api.client.http.xml |
Beta XML HTTP library based on the pluggable HTTP library. |
com.google.api.client.http.xml.atom |
Beta Atom XML HTTP library based on the pluggable HTTP library. |
com.google.api.client.testing.http |
Beta 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 |
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 |
MultipartContent.Part.getContent()
Returns the HTTP content or
null for none. |
HttpContent |
HttpRequest.getContent()
Returns the HTTP request content or
null for none. |
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. |
MultipartContent.Part |
MultipartContent.Part.setContent(HttpContent content)
Sets the HTTP content or
null for none. |
HttpRequest |
HttpRequest.setContent(HttpContent content)
Sets the HTTP request 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 |
---|
Part(HttpContent content) |
Part(HttpHeaders headers,
HttpContent content) |
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 |
ProtoHttpContent
Beta Serializes of a protocol buffer message to HTTP content. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractXmlHttpContent
Beta Abstract serializer for XML HTTP content based on the data key/value mapping object for an item. |
class |
XmlHttpContent
Beta Serializes XML HTTP content based on the data key/value mapping object for an item. |
Modifier and Type | Class and Description |
---|---|
class |
AtomContent
Beta 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
|
Copyright © 2011–2019 Google. All rights reserved.