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 HttpMediaTypeAbstractHttpContent.mediaTypeMedia type used for the Content-Type header ornullfor none.private final HttpMediaTypeHttpResponse.mediaTypeParsed content-type/media type ornullif content-type is null.Methods in com.google.api.client.http that return HttpMediaTypeModifier and TypeMethodDescriptionprivate HttpMediaTypeHttpMediaType.fromString(String combinedType) Sets the full media type by parsing a full content-type string, for example"text/plain; foo=bar".final HttpMediaTypeAbstractHttpContent.getMediaType()Returns the media type to use for the Content-Type header, ornullif unspecified.HttpResponse.getMediaType()Returns the parsed Content-Type in form of aHttpMediaTypeornullif no content-type was set.private static HttpMediaTypeHttpResponse.parseMediaType(String contentType) Returns anHttpMediaTypeobject parsed fromHttpResponse.contentType, ornullif ifHttpResponse.contentTypecannot be parsed orHttpResponse.contentTypeisnull.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 TypeMethodDescriptionbooleanHttpMediaType.equalsIgnoreParameters(HttpMediaType mediaType) Returnstrueif the specified media type has both the same type and subtype, orfalseif they don't match or the media type isnull.AbstractHttpContent.setMediaType(HttpMediaType mediaType) Sets the media type to use for the Content-Type header, ornullif 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