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 HttpMediaTypeAbstractHttpContent. mediaTypeMedia type used for the Content-Type header ornullfor none.private HttpMediaTypeHttpResponse. mediaTypeParsed content-type/media type ornullif content-type is null.Methods in com.google.api.client.http that return HttpMediaType Modifier and Type Method Description private HttpMediaTypeHttpMediaType. fromString(java.lang.String combinedType)Sets the full media type by parsing a full content-type string, for example"text/plain; foo=bar".HttpMediaTypeAbstractHttpContent. getMediaType()Returns the media type to use for the Content-Type header, ornullif unspecified.HttpMediaTypeHttpResponse. getMediaType()Returns the parsed Content-Type in form of aHttpMediaTypeornullif no content-type was set.private static HttpMediaTypeHttpResponse. parseMediaType(java.lang.String contentType)Returns anHttpMediaTypeobject parsed fromHttpResponse.contentType, ornullif ifHttpResponse.contentTypecannot be parsed orHttpResponse.contentTypeisnull.HttpMediaTypeHttpMediaType. removeParameter(java.lang.String name)Removes the specified media parameter.HttpMediaTypeHttpMediaType. setCharsetParameter(java.nio.charset.Charset charset)Sets the charset parameter of the media type.HttpMediaTypeHttpMediaType. setParameter(java.lang.String name, java.lang.String value)Sets the media parameter to the specified value.HttpMediaTypeHttpMediaType. setSubType(java.lang.String subType)Sets the sub media type, for example"plain"when using"text".HttpMediaTypeHttpMediaType. 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 booleanHttpMediaType. 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.AbstractHttpContentAbstractHttpContent. setMediaType(HttpMediaType mediaType)Sets the media type to use for the Content-Type header, ornullif unspecified.MultipartContentMultipartContent. setMediaType(HttpMediaType mediaType)UrlEncodedContentUrlEncodedContent. 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 JsonHttpContentJsonHttpContent. 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 ProtoHttpContentProtoHttpContent. 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 AbstractXmlHttpContentAbstractXmlHttpContent. setMediaType(HttpMediaType mediaType)XmlHttpContentXmlHttpContent. 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 AtomContentAtomContent. setMediaType(HttpMediaType mediaType)
-