| Modifier and Type | Field | Description |
|---|---|---|
static MediaType |
MediaType.APPLICATION_ATOM_XML |
A
MediaType constant representing application/atom+xml media type. |
static MediaType |
MediaType.APPLICATION_FORM_URLENCODED |
A
MediaType constant representing application/x-www-form-urlencoded media type. |
static MediaType |
MediaType.APPLICATION_JSON |
A
MediaType constant representing application/json media type. |
static MediaType |
MediaType.APPLICATION_OCTET_STREAM |
A
MediaType constant representing application/octet-stream media type. |
static MediaType |
MediaType.APPLICATION_SVG_XML |
A
MediaType constant representing application/svg+xml media type. |
static MediaType |
MediaType.APPLICATION_XHTML_XML |
A
MediaType constant representing application/xhtml+xml media type. |
static MediaType |
MediaType.APPLICATION_XML |
A
MediaType constant representing application/xml media type. |
static MediaType |
MediaType.MULTIPART_FORM_DATA |
A
MediaType constant representing multipart/form-data media type. |
static MediaType |
MediaType.TEXT_HTML |
A
MediaType constant representing text/html media type. |
static MediaType |
MediaType.TEXT_PLAIN |
A
MediaType constant representing text/plain media type. |
static MediaType |
MediaType.TEXT_XML |
A
MediaType constant representing text/xml media type. |
static MediaType |
MediaType.WILDCARD |
A
MediaType constant representing wildcard media type. |
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.function.Predicate<MediaType> |
MediaType.JSON_PREDICATE |
|
static java.util.function.Predicate<MediaType> |
MediaType.XML_PREDICATE |
| Modifier and Type | Method | Description |
|---|---|---|
static MediaType |
MediaType.parse(java.lang.String input) |
Parses a media type from its string representation.
|
MediaType |
MediaType.withCharset(java.lang.String charset) |
Create a new
MediaType instance with the same type, subtype and parameters
copied from the original instance and the supplied parameter. |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
MediaType.test(MediaType other) |
Check if this media type is compatible with another media type.
|
Copyright © 2018 Oracle Corporation. All rights reserved.