Package org.mockserver.model
Class MediaType
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.model.MediaType
-
public class MediaType extends ObjectWithJsonToString
-
-
Field Summary
Fields Modifier and Type Field Description static MediaType
ANY_AUDIO_TYPE
static MediaType
ANY_IMAGE_TYPE
static MediaType
ANY_VIDEO_TYPE
static MediaType
APPLICATION_ATOM_XML
static MediaType
APPLICATION_BINARY
static MediaType
APPLICATION_FORM_URLENCODED
static MediaType
APPLICATION_JSON
static MediaType
APPLICATION_JSON_PATCH_JSON
static MediaType
APPLICATION_OCTET_STREAM
static MediaType
APPLICATION_SVG_XML
static MediaType
APPLICATION_XHTML_XML
static MediaType
APPLICATION_XML_UTF_8
static MediaType
ATOM_UTF_8
static MediaType
FORM_DATA
static MediaType
HTML_UTF_8
static MediaType
JPEG
static MediaType
JSON_UTF_8
static MediaType
MULTIPART_FORM_DATA
static MediaType
PDF
static MediaType
PLAIN_TEXT_UTF_8
static MediaType
PNG
static MediaType
QUICKTIME
static MediaType
SERVER_SENT_EVENTS
static MediaType
TEXT_HTML
static MediaType
TEXT_PLAIN
static MediaType
TEXT_XML
static MediaType
WILDCARD
static MediaType
XML_UTF_8
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediaType
create(String type, String subType)
Charset
getCharset()
Map<String,String>
getParameters()
String
getSubtype()
String
getType()
boolean
isCompatible(MediaType other)
static MediaType
parse(String mediaTypeHeader)
String
toString()
MediaType
withCharset(String charset)
MediaType
withCharset(Charset charset)
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
Field Detail
-
WILDCARD
public static final MediaType WILDCARD
-
APPLICATION_ATOM_XML
public static final MediaType APPLICATION_ATOM_XML
-
APPLICATION_XHTML_XML
public static final MediaType APPLICATION_XHTML_XML
-
APPLICATION_SVG_XML
public static final MediaType APPLICATION_SVG_XML
-
APPLICATION_XML_UTF_8
public static final MediaType APPLICATION_XML_UTF_8
-
XML_UTF_8
public static final MediaType XML_UTF_8
-
APPLICATION_JSON
public static final MediaType APPLICATION_JSON
-
JSON_UTF_8
public static final MediaType JSON_UTF_8
-
APPLICATION_FORM_URLENCODED
public static final MediaType APPLICATION_FORM_URLENCODED
-
FORM_DATA
public static final MediaType FORM_DATA
-
MULTIPART_FORM_DATA
public static final MediaType MULTIPART_FORM_DATA
-
APPLICATION_OCTET_STREAM
public static final MediaType APPLICATION_OCTET_STREAM
-
APPLICATION_BINARY
public static final MediaType APPLICATION_BINARY
-
PDF
public static final MediaType PDF
-
ATOM_UTF_8
public static final MediaType ATOM_UTF_8
-
TEXT_PLAIN
public static final MediaType TEXT_PLAIN
-
PLAIN_TEXT_UTF_8
public static final MediaType PLAIN_TEXT_UTF_8
-
TEXT_XML
public static final MediaType TEXT_XML
-
TEXT_HTML
public static final MediaType TEXT_HTML
-
HTML_UTF_8
public static final MediaType HTML_UTF_8
-
SERVER_SENT_EVENTS
public static final MediaType SERVER_SENT_EVENTS
-
APPLICATION_JSON_PATCH_JSON
public static final MediaType APPLICATION_JSON_PATCH_JSON
-
ANY_VIDEO_TYPE
public static final MediaType ANY_VIDEO_TYPE
-
ANY_AUDIO_TYPE
public static final MediaType ANY_AUDIO_TYPE
-
ANY_IMAGE_TYPE
public static final MediaType ANY_IMAGE_TYPE
-
QUICKTIME
public static final MediaType QUICKTIME
-
JPEG
public static final MediaType JPEG
-
PNG
public static final MediaType PNG
-
-