public class AcceptableMediaType extends MediaType implements QualityFactor
APPLICATION_ATOM_XML, APPLICATION_ATOM_XML_TYPE, APPLICATION_FORM_URLENCODED, APPLICATION_FORM_URLENCODED_TYPE, APPLICATION_JSON, APPLICATION_JSON_TYPE, APPLICATION_OCTET_STREAM, APPLICATION_OCTET_STREAM_TYPE, APPLICATION_SVG_XML, APPLICATION_SVG_XML_TYPE, APPLICATION_XHTML_XML, APPLICATION_XHTML_XML_TYPE, APPLICATION_XML, APPLICATION_XML_TYPE, MEDIA_TYPE_WILDCARD, MULTIPART_FORM_DATA, MULTIPART_FORM_DATA_TYPE, TEXT_HTML, TEXT_HTML_TYPE, TEXT_PLAIN, TEXT_PLAIN_TYPE, TEXT_XML, TEXT_XML_TYPE, WILDCARD, WILDCARD_TYPE
DEFAULT_QUALITY_FACTOR, MAXIMUM_QUALITY, MINUMUM_QUALITY, QUALITY_FACTOR
Constructor and Description |
---|
AcceptableMediaType(java.lang.String p,
java.lang.String s) |
AcceptableMediaType(java.lang.String p,
java.lang.String s,
int q,
java.util.Map<java.lang.String,java.lang.String> parameters) |
Modifier and Type | Method and Description |
---|---|
int |
getQuality() |
static AcceptableMediaType |
valueOf(HttpHeaderReader reader) |
equals, getParameters, getSubtype, getType, hashCode, isCompatible, isWildcardSubtype, isWildcardType, toString, valueOf
public AcceptableMediaType(java.lang.String p, java.lang.String s)
public AcceptableMediaType(java.lang.String p, java.lang.String s, int q, java.util.Map<java.lang.String,java.lang.String> parameters)
public int getQuality()
getQuality
in interface QualityFactor
public static AcceptableMediaType valueOf(HttpHeaderReader reader) throws java.text.ParseException
java.text.ParseException
Copyright © 2016 Oracle Corporation. All Rights Reserved.