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. |
com.google.api.client.util |
General utilities used throughout this library.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
HttpContent |
Serializes HTTP request content into an output stream.
|
Modifier and Type | Class | 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 |
HttpEncodingStreamingContent |
Streaming content based on an HTTP encoding.
|
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 | Description |
---|---|---|
StreamingContent |
HttpEncodingStreamingContent.getContent() |
Returns the streaming content.
|
StreamingContent |
LowLevelHttpRequest.getStreamingContent() |
Returns the streaming content or
null for no content. |
Modifier and Type | Method | Description |
---|---|---|
void |
GZipEncoding.encode(StreamingContent content,
OutputStream out) |
|
void |
HttpEncoding.encode(StreamingContent content,
OutputStream out) |
Encodes the streaming content into the output stream.
|
void |
LowLevelHttpRequest.setStreamingContent(StreamingContent streamingContent) |
Sets the streaming content or
null for no content. |
Constructor | Description |
---|---|
HttpEncodingStreamingContent(StreamingContent content,
HttpEncoding encoding) |
Modifier and Type | Class | Description |
---|---|---|
class |
JsonHttpContent |
Serializes JSON HTTP content based on the data key/value mapping object for an item.
|
Modifier and Type | Class | Description |
---|---|---|
class |
ProtoHttpContent |
Beta Serializes of a protocol buffer message to HTTP content. |
Modifier and Type | Class | 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 | 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 | Description |
---|---|---|
class |
MockHttpContent |
Modifier and Type | Class | Description |
---|---|---|
class |
ByteArrayStreamingContent |
Streaming content whose source is a byte array.
|
class |
LoggingStreamingContent |
Wraps another streaming content without modifying the content, but also logging content using
LoggingOutputStream . |
Modifier and Type | Method | Description |
---|---|---|
static long |
IOUtils.computeLength(StreamingContent content) |
Computes and returns the byte content length for a streaming content by calling
writeTo(OutputStream) on a fake output stream that only counts bytes
written. |
Constructor | Description |
---|---|
LoggingStreamingContent(StreamingContent content,
Logger logger,
Level loggingLevel,
int contentLoggingLimit) |
Copyright © 2011–2019 Google. All rights reserved.