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 and Description |
---|---|
HttpMediaType |
HttpResponse.getMediaType()
Returns the parsed Content-Type in form of a
HttpMediaType or null if no
content-type was set. |
HttpMediaType |
AbstractHttpContent.getMediaType()
Returns the media type to use for the Content-Type header, or
null if unspecified. |
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 and 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 . |
UrlEncodedContent |
UrlEncodedContent.setMediaType(HttpMediaType mediaType) |
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) |
Constructor and Description |
---|
AbstractHttpContent(HttpMediaType mediaType) |
Modifier and Type | Method and Description |
---|---|
JsonHttpContent |
JsonHttpContent.setMediaType(HttpMediaType mediaType) |
Modifier and Type | Method and Description |
---|---|
ProtoHttpContent |
ProtoHttpContent.setMediaType(HttpMediaType mediaType) |
Modifier and Type | Method and Description |
---|---|
XmlHttpContent |
XmlHttpContent.setMediaType(HttpMediaType mediaType) |
AbstractXmlHttpContent |
AbstractXmlHttpContent.setMediaType(HttpMediaType mediaType) |
Modifier and Type | Method and Description |
---|---|
AtomContent |
AtomContent.setMediaType(HttpMediaType mediaType) |
Copyright © 2011–2022 Google. All rights reserved.