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 and Description |
---|---|
interface |
HttpContent
Serializes HTTP request content into an output stream.
|
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 |
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 and Description |
---|---|
StreamingContent |
HttpEncodingStreamingContent.getContent()
Returns the streaming content.
|
StreamingContent |
LowLevelHttpRequest.getStreamingContent()
Returns the streaming content or
null for no content. |
Modifier and Type | Method and Description |
---|---|
void |
HttpEncoding.encode(StreamingContent content,
OutputStream out)
Encodes the streaming content into the output stream.
|
void |
GZipEncoding.encode(StreamingContent content,
OutputStream out) |
void |
LowLevelHttpRequest.setStreamingContent(StreamingContent streamingContent)
Sets the streaming content or
null for no content. |
Constructor and Description |
---|
HttpEncodingStreamingContent(StreamingContent content,
HttpEncoding encoding) |
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
|
Modifier and Type | Class and Description |
---|---|
class |
ByteArrayStreamingContent
Deprecated.
use com.google.common.io.ByteSource
|
class |
LoggingStreamingContent
Wraps another streaming content without modifying the content, but also logging content using
LoggingOutputStream . |
Modifier and Type | Method and 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 and Description |
---|
LoggingStreamingContent(StreamingContent content,
Logger logger,
Level loggingLevel,
int contentLoggingLimit) |
Copyright © 2011–2021 Google. All rights reserved.