Uses of Class
com.google.api.client.http.HttpMediaType
Packages that use HttpMediaType
Package
Description
Subset of HTTP 1.1 needed from the specification in RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1.
JSON HTTP library based on the pluggable HTTP library.
Beta
XML HTTP library based on the pluggable HTTP library.
Beta
Atom XML HTTP library based on the pluggable HTTP library.
-
Uses of HttpMediaType in com.google.api.client.http
Fields in com.google.api.client.http declared as HttpMediaTypeModifier and TypeFieldDescriptionprivate HttpMediaType
AbstractHttpContent.mediaType
Media type used for the Content-Type header ornull
for none.private final HttpMediaType
HttpResponse.mediaType
Parsed content-type/media type ornull
if content-type is null.Methods in com.google.api.client.http that return HttpMediaTypeModifier and TypeMethodDescriptionprivate HttpMediaType
HttpMediaType.fromString
(String combinedType) Sets the full media type by parsing a full content-type string, for example"text/plain; foo=bar"
.final HttpMediaType
AbstractHttpContent.getMediaType()
Returns the media type to use for the Content-Type header, ornull
if unspecified.HttpResponse.getMediaType()
Returns the parsed Content-Type in form of aHttpMediaType
ornull
if no content-type was set.HttpMediaType.removeParameter
(String name) Removes the specified media parameter.HttpMediaType.setCharsetParameter
(Charset charset) Sets the charset parameter of the media type.HttpMediaType.setParameter
(String name, String value) Sets the media parameter to the specified value.HttpMediaType.setSubType
(String subType) Sets the sub media type, for example"plain"
when using"text"
.Sets the (main) media type, for example"text"
.Methods in com.google.api.client.http with parameters of type HttpMediaTypeModifier and TypeMethodDescriptionboolean
HttpMediaType.equalsIgnoreParameters
(HttpMediaType mediaType) Returnstrue
if the specified media type has both the same type and subtype, orfalse
if they don't match or the media type isnull
.AbstractHttpContent.setMediaType
(HttpMediaType mediaType) Sets the media type to use for the Content-Type header, ornull
if unspecified.MultipartContent.setMediaType
(HttpMediaType mediaType) UrlEncodedContent.setMediaType
(HttpMediaType mediaType) Constructors in com.google.api.client.http with parameters of type HttpMediaType -
Uses of HttpMediaType in com.google.api.client.http.json
Methods in com.google.api.client.http.json with parameters of type HttpMediaType -
Uses of HttpMediaType in com.google.api.client.http.protobuf
Methods in com.google.api.client.http.protobuf with parameters of type HttpMediaType -
Uses of HttpMediaType in com.google.api.client.http.xml
Methods in com.google.api.client.http.xml with parameters of type HttpMediaTypeModifier and TypeMethodDescriptionAbstractXmlHttpContent.setMediaType
(HttpMediaType mediaType) XmlHttpContent.setMediaType
(HttpMediaType mediaType) -
Uses of HttpMediaType in com.google.api.client.http.xml.atom
Methods in com.google.api.client.http.xml.atom with parameters of type HttpMediaType