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. |
Modifier and Type | Method | Description |
---|---|---|
HttpMediaType |
AbstractHttpContent.getMediaType() |
Returns the media type to use for the Content-Type header, or
null if unspecified. |
HttpMediaType |
HttpResponse.getMediaType() |
Returns the parsed Content-Type in form of a
HttpMediaType or null if no
content-type was set. |
HttpMediaType |
HttpMediaType.removeParameter(String name) |
Removes the specified media parameter.
|
HttpMediaType |
HttpMediaType.setCharsetParameter(Charset charset) |
Sets the charset parameter of the media type.
|
HttpMediaType |
HttpMediaType.setParameter(String name,
String value) |
Sets the media parameter to the specified value.
|
HttpMediaType |
HttpMediaType.setSubType(String subType) |
Sets the sub media type, for example
"plain" when using "text" . |
HttpMediaType |
HttpMediaType.setType(String type) |
Sets the (main) media type, for example
"text" . |
Modifier and Type | Method | Description |
---|---|---|
boolean |
HttpMediaType.equalsIgnoreParameters(HttpMediaType mediaType) |
Returns
true if the specified media type has both the same type and subtype, or
false if they don't match or the media type is null . |
AbstractHttpContent |
AbstractHttpContent.setMediaType(HttpMediaType mediaType) |
Sets the media type to use for the Content-Type header, or
null if unspecified. |
MultipartContent |
MultipartContent.setMediaType(HttpMediaType mediaType) |
|
UrlEncodedContent |
UrlEncodedContent.setMediaType(HttpMediaType mediaType) |
Constructor | Description |
---|---|
AbstractHttpContent(HttpMediaType mediaType) |
Modifier and Type | Method | Description |
---|---|---|
JsonHttpContent |
JsonHttpContent.setMediaType(HttpMediaType mediaType) |
Modifier and Type | Method | Description |
---|---|---|
ProtoHttpContent |
ProtoHttpContent.setMediaType(HttpMediaType mediaType) |
Modifier and Type | Method | Description |
---|---|---|
AbstractXmlHttpContent |
AbstractXmlHttpContent.setMediaType(HttpMediaType mediaType) |
|
XmlHttpContent |
XmlHttpContent.setMediaType(HttpMediaType mediaType) |
Modifier and Type | Method | Description |
---|---|---|
AtomContent |
AtomContent.setMediaType(HttpMediaType mediaType) |
Copyright © 2011–2019 Google. All rights reserved.