Uses of Class
com.google.api.client.http.HttpMediaType
-
Packages that use HttpMediaType 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. -
-
Uses of HttpMediaType in com.google.api.client.http
Fields in com.google.api.client.http declared as HttpMediaType Modifier and Type Field Description private HttpMediaType
AbstractHttpContent. mediaType
Media type used for the Content-Type header ornull
for none.private HttpMediaType
HttpResponse. mediaType
Parsed content-type/media type ornull
if content-type is null.Methods in com.google.api.client.http that return HttpMediaType Modifier and Type Method Description private HttpMediaType
HttpMediaType. fromString(java.lang.String combinedType)
Sets the full media type by parsing a full content-type string, for example"text/plain; foo=bar"
.HttpMediaType
AbstractHttpContent. getMediaType()
Returns the media type to use for the Content-Type header, ornull
if unspecified.HttpMediaType
HttpResponse. getMediaType()
Returns the parsed Content-Type in form of aHttpMediaType
ornull
if no content-type was set.HttpMediaType
HttpMediaType. removeParameter(java.lang.String name)
Removes the specified media parameter.HttpMediaType
HttpMediaType. setCharsetParameter(java.nio.charset.Charset charset)
Sets the charset parameter of the media type.HttpMediaType
HttpMediaType. setParameter(java.lang.String name, java.lang.String value)
Sets the media parameter to the specified value.HttpMediaType
HttpMediaType. setSubType(java.lang.String subType)
Sets the sub media type, for example"plain"
when using"text"
.HttpMediaType
HttpMediaType. setType(java.lang.String type)
Sets the (main) media type, for example"text"
.Methods in com.google.api.client.http with parameters of type HttpMediaType Modifier and Type Method Description boolean
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
AbstractHttpContent. setMediaType(HttpMediaType mediaType)
Sets the media type to use for the Content-Type header, ornull
if unspecified.MultipartContent
MultipartContent. setMediaType(HttpMediaType mediaType)
UrlEncodedContent
UrlEncodedContent. setMediaType(HttpMediaType mediaType)
Constructors in com.google.api.client.http with parameters of type HttpMediaType Constructor Description AbstractHttpContent(HttpMediaType mediaType)
-
Uses of HttpMediaType in com.google.api.client.http.json
Methods in com.google.api.client.http.json with parameters of type HttpMediaType Modifier and Type Method Description JsonHttpContent
JsonHttpContent. setMediaType(HttpMediaType mediaType)
-
Uses of HttpMediaType in com.google.api.client.http.protobuf
Methods in com.google.api.client.http.protobuf with parameters of type HttpMediaType Modifier and Type Method Description ProtoHttpContent
ProtoHttpContent. setMediaType(HttpMediaType mediaType)
-
Uses of HttpMediaType in com.google.api.client.http.xml
Methods in com.google.api.client.http.xml with parameters of type HttpMediaType Modifier and Type Method Description AbstractXmlHttpContent
AbstractXmlHttpContent. setMediaType(HttpMediaType mediaType)
XmlHttpContent
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 Modifier and Type Method Description AtomContent
AtomContent. setMediaType(HttpMediaType mediaType)
-