Example usage for Java org.springframework.http MediaType fields, constructors, methods, implement or subclass
The text is from its open source code.
MediaType | ALL Public constant media type that includes all media ranges (i.e. |
String | ALL_VALUE A String equivalent of MediaType#ALL . |
MediaType | APPLICATION_ATOM_XML Public constant media type for application/atom+xml . |
String | APPLICATION_ATOM_XML_VALUE A String equivalent of MediaType#APPLICATION_ATOM_XML . |
MediaType | APPLICATION_FORM_URLENCODED Public constant media type for application/x-www-form-urlencoded . |
String | APPLICATION_FORM_URLENCODED_VALUE A String equivalent of MediaType#APPLICATION_FORM_URLENCODED . |
MediaType | APPLICATION_JSON Public constant media type for application/json . |
String | APPLICATION_JSON_VALUE A String equivalent of MediaType#APPLICATION_JSON . |
MediaType | APPLICATION_JSON_UTF8 Public constant media type for application/json;charset=UTF-8 . |
String | APPLICATION_JSON_UTF8_VALUE A String equivalent of MediaType#APPLICATION_JSON_UTF8 . |
MediaType | APPLICATION_OCTET_STREAM Public constant media type for application/octet-stream . |
String | APPLICATION_OCTET_STREAM_VALUE A String equivalent of MediaType#APPLICATION_OCTET_STREAM . |
MediaType | APPLICATION_PDF Public constant media type for application/pdf . |
String | APPLICATION_PDF_VALUE A String equivalent of MediaType#APPLICATION_PDF . |
MediaType | APPLICATION_STREAM_JSON Public constant media type for application/stream+json . |
MediaType | APPLICATION_XHTML_XML Public constant media type for application/xhtml+xml . |
String | APPLICATION_XHTML_XML_VALUE A String equivalent of MediaType#APPLICATION_XHTML_XML . |
MediaType | APPLICATION_XML Public constant media type for application/xml . |
String | APPLICATION_XML_VALUE A String equivalent of MediaType#APPLICATION_XML . |
MediaType | IMAGE_GIF Public constant media type for image/gif . |
String | IMAGE_GIF_VALUE A String equivalent of MediaType#IMAGE_GIF . |
MediaType | IMAGE_JPEG Public constant media type for image/jpeg . |
String | IMAGE_JPEG_VALUE A String equivalent of MediaType#IMAGE_JPEG . |
MediaType | IMAGE_PNG Public constant media type for image/png . |
String | IMAGE_PNG_VALUE A String equivalent of MediaType#IMAGE_PNG . |
MediaType | MULTIPART_FORM_DATA Public constant media type for multipart/form-data . |
String | MULTIPART_FORM_DATA_VALUE A String equivalent of MediaType#MULTIPART_FORM_DATA . |
MediaType | TEXT_EVENT_STREAM Public constant media type for text/event-stream . |
String | TEXT_EVENT_STREAM_VALUE A String equivalent of MediaType#TEXT_EVENT_STREAM . |
MediaType | TEXT_HTML Public constant media type for text/html . |
String | TEXT_HTML_VALUE A String equivalent of MediaType#TEXT_HTML . |
MediaType | TEXT_PLAIN Public constant media type for text/plain . |
String | TEXT_PLAIN_VALUE A String equivalent of MediaType#TEXT_PLAIN . |
MediaType | TEXT_XML Public constant media type for text/xml . |
String | TEXT_XML_VALUE A String equivalent of MediaType#TEXT_XML . |
Comparator | QUALITY_VALUE_COMPARATOR Comparator used by #sortByQualityValue(List) . |
Comparator | SPECIFICITY_COMPARATOR Comparator used by #sortBySpecificity(List) . |
MediaType(String type, String subtype) Create a new MediaType for the given primary type and subtype. | |
MediaType(MediaType other, Charset charset) Copy-constructor that copies the type, subtype and parameters of the given MediaType , and allows to set the specified character set. | |
MediaType(MediaType other, @Nullable Map Copy-constructor that copies the type and subtype of the given MediaType , and allows for different parameters. | |
MediaType(String type, String subtype, Charset charset) Create a new MediaType for the given type, subtype, and character set. | |
MediaType(String type, String subtype, double qualityValue) Create a new MediaType for the given type, subtype, and quality value. | |
MediaType(String type, String subtype, @Nullable Map Create a new MediaType for the given type, subtype, and parameters. | |
MediaType(String type) Create a new MediaType for the given primary type. |
List | asMediaTypes(List Re-create the given mime types as media types. |
MediaType | copyQualityValue(MediaType mediaType) Return a replica of this instance with the quality value of the given MediaType . |
boolean | equals(@Nullable Object other) |
Charset | getCharset() Return the character set, as indicated by a charset parameter, if any. |
String | getParameter(String name) Return a generic parameter value, given a parameter name. |
Map | getParameters() Return all generic parameter values. |
double | getQualityValue() Return the quality factor, as indicated by a q parameter, if any. |
String | getSubtype() Return the subtype. |
String | getType() Return the primary type. |
boolean | includes(@Nullable MediaType other) Indicate whether this MediaType includes the given media type. |
boolean | isCompatibleWith(@Nullable MediaType other) Indicate whether this MediaType is compatible with the given media type. |
boolean | isConcrete() Indicates whether this MIME Type is concrete, i.e. |
boolean | isWildcardSubtype() Indicates whether the #getSubtype() subtype is the wildcard character * or the wildcard character followed by a suffix (e.g. |
boolean | isWildcardType() Indicates whether the #getType() type is the wildcard character * or not. |
MediaType | parseMediaType(String mediaType) Parse the given String into a single MediaType . |
List | parseMediaTypes(@Nullable String mediaTypes) Parse the comma-separated string into a list of MediaType objects. |
List | parseMediaTypes(@Nullable List Parse the given list of (potentially) comma-separated strings into a list of MediaType objects. |
MediaType | removeQualityValue() Return a replica of this instance with its quality value removed. |
void | sortByQualityValue(List Sorts the given list of MediaType objects by quality value. |
void | sortBySpecificity(List Sorts the given list of MediaType objects by specificity. |
void | sortBySpecificityAndQuality(List Sorts the given list of MediaType objects by specificity as the primary criteria and quality value the secondary. |
String | toString() |
String | toString(Collection Return a string representation of the given list of MediaType objects. |
MediaType | valueOf(String value) Parse the given String value into a MediaType object, with this method name following the 'valueOf' naming convention (as supported by org.springframework.core.convert.ConversionService . |