| 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.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 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
Builds a
PATCH request for the given URL and content.
|
HttpRequest |
HttpRequestFactory.buildPostRequest(GenericUrl
Builds a
POST request for the given URL and content.
|
HttpRequest |
HttpRequestFactory.buildPutRequest(GenericUrl
Builds a
PUT request for the given URL and content.
|
HttpRequest |
HttpRequestFactory.buildRequest(String
Builds a request for the given HTTP method, URL, and content.
|
static long |
AbstractHttpContent.computeLength(HttpContent
Returns the computed content length based using
IOUtils or instead
-1 if
retrySupported() is
false because the stream must not be read twice.
|
MultipartContent |
MultipartContent.Part.setContent(HttpContent
Sets the HTTP content or
null for none.
|
HttpRequest |
HttpRequest.setContent(HttpContent
Sets the HTTP request content or
null for none.
|
| Modifier and Type | Method and Description |
|---|---|
MultipartContent |
MultipartContent.setContentParts(Collection
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
|
|
Part(HttpHeaders
|
| 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 |
MockHttpContent
|