public final class MediaTypes
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static MediaType.Binary |
applicationBinary(java.lang.String subType,
boolean compressible,
java.lang.String... fileExtensions) |
static MediaType.Binary |
applicationBinary(java.lang.String subType,
MediaType.Compressibility compressibility,
java.lang.String... fileExtensions) |
static MediaType.WithFixedCharset |
applicationWithFixedCharset(java.lang.String subType,
HttpCharset charset,
java.lang.String... fileExtensions) |
static MediaType.WithOpenCharset |
applicationWithOpenCharset(java.lang.String subType,
java.lang.String... fileExtensions) |
static MediaType.Binary |
audio(java.lang.String subType,
boolean compressible,
java.lang.String... fileExtensions) |
static MediaType.Binary |
audio(java.lang.String subType,
MediaType.Compressibility compressibility,
java.lang.String... fileExtensions) |
static MediaType |
custom(java.lang.String value,
boolean binary,
boolean compressible)
Creates a custom media type.
|
static MediaType |
custom(java.lang.String value,
boolean binary,
MediaType.Compressibility compressibility) |
static MediaType.Binary |
customBinary(java.lang.String mainType,
java.lang.String subType,
boolean compressible) |
static MediaType.Binary |
customBinary(java.lang.String mainType,
java.lang.String subType,
boolean compressible,
java.util.Map<java.lang.String,java.lang.String> params,
boolean allowArbitrarySubtypes,
java.lang.String... fileExtensions) |
static MediaType.Binary |
customBinary(java.lang.String mainType,
java.lang.String subType,
MediaType.Compressibility compressibility) |
static MediaType.Binary |
customBinary(java.lang.String mainType,
java.lang.String subType,
MediaType.Compressibility compressibility,
java.util.Map<java.lang.String,java.lang.String> params,
boolean allowArbitrarySubtypes,
java.lang.String... fileExtensions) |
static MediaType.Multipart |
customMultipart(java.lang.String subType,
java.util.Map<java.lang.String,java.lang.String> params) |
static MediaType.WithFixedCharset |
customWithFixedCharset(java.lang.String mainType,
java.lang.String subType,
HttpCharset charset,
java.util.Map<java.lang.String,java.lang.String> params,
boolean allowArbitrarySubtypes,
java.lang.String... fileExtensions) |
static MediaType.WithOpenCharset |
customWithOpenCharset(java.lang.String mainType,
java.lang.String subType,
java.util.Map<java.lang.String,java.lang.String> params,
boolean allowArbitrarySubtypes,
java.lang.String... fileExtensions) |
static MediaType.Binary |
image(java.lang.String subType,
boolean compressible,
java.lang.String... fileExtensions) |
static MediaType.Binary |
image(java.lang.String subType,
MediaType.Compressibility compressibility,
java.lang.String... fileExtensions) |
static java.util.Optional<MediaType> |
lookup(java.lang.String mainType,
java.lang.String subType)
Looks up a media-type with the given main-type and sub-type.
|
static MediaType.Binary |
message(java.lang.String subType,
boolean compressible,
java.lang.String... fileExtensions) |
static MediaType.Binary |
message(java.lang.String subType,
MediaType.Compressibility compressibility,
java.lang.String... fileExtensions) |
static MediaType.WithOpenCharset |
text(java.lang.String subType,
java.lang.String... fileExtensions) |
static MediaType.Binary |
video(java.lang.String subType,
boolean compressible,
java.lang.String... fileExtensions) |
static MediaType.Binary |
video(java.lang.String subType,
MediaType.Compressibility compressibility,
java.lang.String... fileExtensions) |
public static final MediaType.WithOpenCharset APPLICATION_ATOM_XML
public static final MediaType.WithOpenCharset APPLICATION_BASE64
public static final MediaType.Binary APPLICATION_CBOR
@Deprecated public static final MediaType.Binary APPLICATION_EXCEL
@Deprecated public static final MediaType.Binary APPLICATION_FONT_WOFF
public static final MediaType.Binary APPLICATION_GNUTAR
public static final MediaType.Binary APPLICATION_JAVA_ARCHIVE
public static final MediaType.WithOpenCharset APPLICATION_JAVASCRIPT
public static final MediaType.WithFixedCharset APPLICATION_JSON
public static final MediaType.WithFixedCharset APPLICATION_JSON_PATCH_JSON
public static final MediaType.WithFixedCharset APPLICATION_MERGE_PATCH_JSON
public static final MediaType.Binary APPLICATION_LHA
public static final MediaType.Binary APPLICATION_LZX
@Deprecated public static final MediaType.Binary APPLICATION_MSPOWERPOINT
public static final MediaType.Binary APPLICATION_MSWORD
public static final MediaType.Binary APPLICATION_OCTET_STREAM
public static final MediaType.Binary APPLICATION_GRPC_PROTO
public static final MediaType.Binary APPLICATION_PDF
public static final MediaType.Binary APPLICATION_POSTSCRIPT
public static final MediaType.WithOpenCharset APPLICATION_RSS_XML
public static final MediaType.WithOpenCharset APPLICATION_SOAP_XML
public static final MediaType.WithFixedCharset APPLICATION_VND_API_JSON
public static final MediaType.WithOpenCharset APPLICATION_VND_GOOGLE_EARTH_KML_XML
public static final MediaType.Binary APPLICATION_VND_GOOGLE_EARTH_KMZ
public static final MediaType.Binary APPLICATION_VND_MS_EXCEL
public static final MediaType.Binary APPLICATION_VND_MS_EXCEL_ADDIN_MACROENABLED_12
public static final MediaType.Binary APPLICATION_VND_MS_EXCEL_SHEET_BINARY_MACROENABLED_12
public static final MediaType.Binary APPLICATION_VND_MS_EXCEL_SHEET_MACROENABLED_12
public static final MediaType.Binary APPLICATION_VND_MS_EXCEL_TEMPLATE_MACROENABLED_12
public static final MediaType.Binary APPLICATION_VND_MS_FONTOBJECT
public static final MediaType.Binary APPLICATION_VND_MS_POWERPOINT
public static final MediaType.Binary APPLICATION_VND_MS_POWERPOINT_ADDIN_MACROENABLED_12
public static final MediaType.Binary APPLICATION_VND_MS_POWERPOINT_PRESENTATION_MACROENABLED_12
public static final MediaType.Binary APPLICATION_VND_MS_POWERPOINT_SLIDESHOW_MACROENABLED_12
public static final MediaType.Binary APPLICATION_VND_MS_WORD_DOCUMENT_MACROENABLED_12
public static final MediaType.Binary APPLICATION_VND_MS_WORD_TEMPLATE_MACROENABLED_12
public static final MediaType.Binary APPLICATION_VND_OASIS_OPENDOCUMENT_CHART
public static final MediaType.Binary APPLICATION_VND_OASIS_OPENDOCUMENT_DATABASE
public static final MediaType.Binary APPLICATION_VND_OASIS_OPENDOCUMENT_FORMULA
public static final MediaType.Binary APPLICATION_VND_OASIS_OPENDOCUMENT_GRAPHICS
public static final MediaType.Binary APPLICATION_VND_OASIS_OPENDOCUMENT_IMAGE
public static final MediaType.Binary APPLICATION_VND_OASIS_OPENDOCUMENT_PRESENTATION
public static final MediaType.Binary APPLICATION_VND_OASIS_OPENDOCUMENT_SPREADSHEET
public static final MediaType.Binary APPLICATION_VND_OASIS_OPENDOCUMENT_TEXT
public static final MediaType.Binary APPLICATION_VND_OASIS_OPENDOCUMENT_TEXT_MASTER
public static final MediaType.Binary APPLICATION_VND_OASIS_OPENDOCUMENT_TEXT_WEB
public static final MediaType.Binary APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_PRESENTATION
public static final MediaType.Binary APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_SLIDE
public static final MediaType.Binary APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_SLIDESHOW
public static final MediaType.Binary APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_PRESENTATIONML_TEMPLATE
public static final MediaType.Binary APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_SPREADSHEETML_SHEET
public static final MediaType.Binary APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_SPREADSHEETML_TEMPLATE
public static final MediaType.Binary APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT
public static final MediaType.Binary APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_TEMPLATE
public static final MediaType.Binary APPLICATION_X_7Z_COMPRESSED
public static final MediaType.Binary APPLICATION_X_ACE_COMPRESSED
public static final MediaType.Binary APPLICATION_X_APPLE_DISKIMAGE
public static final MediaType.Binary APPLICATION_X_ARC_COMPRESSED
public static final MediaType.Binary APPLICATION_X_BZIP
public static final MediaType.Binary APPLICATION_X_BZIP2
public static final MediaType.Binary APPLICATION_X_CHROME_EXTENSION
public static final MediaType.Binary APPLICATION_X_COMPRESS
public static final MediaType.Binary APPLICATION_X_COMPRESSED
public static final MediaType.Binary APPLICATION_X_DEBIAN_PACKAGE
public static final MediaType.Binary APPLICATION_X_DVI
public static final MediaType.Binary APPLICATION_X_FONT_TRUETYPE
public static final MediaType.Binary APPLICATION_X_FONT_OPENTYPE
public static final MediaType.Binary APPLICATION_X_GTAR
public static final MediaType.Binary APPLICATION_X_GZIP
public static final MediaType.WithOpenCharset APPLICATION_X_LATEX
public static final MediaType.Binary APPLICATION_X_RAR_COMPRESSED
public static final MediaType.Binary APPLICATION_X_REDHAT_PACKAGE_MANAGER
public static final MediaType.Binary APPLICATION_X_SHOCKWAVE_FLASH
public static final MediaType.Binary APPLICATION_X_TAR
public static final MediaType.Binary APPLICATION_X_TEX
public static final MediaType.Binary APPLICATION_X_TEXINFO
public static final MediaType.WithOpenCharset APPLICATION_X_VRML
public static final MediaType.WithFixedCharset APPLICATION_X_WWW_FORM_URLENCODED
public static final MediaType.Binary APPLICATION_X_X509_CA_CERT
public static final MediaType.Binary APPLICATION_X_XPINSTALL
public static final MediaType.WithOpenCharset APPLICATION_XHTML_XML
public static final MediaType.WithOpenCharset APPLICATION_XML_DTD
public static final MediaType.WithOpenCharset APPLICATION_XML
public static final MediaType.Binary APPLICATION_ZIP
public static final MediaType.Binary AUDIO_AIFF
public static final MediaType.Binary AUDIO_BASIC
public static final MediaType.Binary AUDIO_MIDI
public static final MediaType.Binary AUDIO_MOD
public static final MediaType.Binary AUDIO_MPEG
public static final MediaType.Binary AUDIO_OGG
public static final MediaType.Binary AUDIO_VOC
public static final MediaType.Binary AUDIO_VORBIS
public static final MediaType.Binary AUDIO_VOXWARE
public static final MediaType.Binary AUDIO_WAV
public static final MediaType.Binary AUDIO_X_REALAUDIO
public static final MediaType.Binary AUDIO_X_PSID
public static final MediaType.Binary AUDIO_XM
public static final MediaType.Binary AUDIO_WEBM
public static final MediaType.Binary FONT_WOFF
public static final MediaType.Binary FONT_WOFF_2
public static final MediaType.Binary IMAGE_GIF
public static final MediaType.Binary IMAGE_JPEG
public static final MediaType.Binary IMAGE_PICT
public static final MediaType.Binary IMAGE_PNG
public static final MediaType.Binary IMAGE_SVGZ
public static final MediaType.Binary IMAGE_SVG_XML
public static final MediaType.Binary IMAGE_TIFF
public static final MediaType.Binary IMAGE_X_ICON
public static final MediaType.Binary IMAGE_X_MS_BMP
public static final MediaType.Binary IMAGE_X_PCX
public static final MediaType.Binary IMAGE_X_PICT
public static final MediaType.Binary IMAGE_X_QUICKTIME
public static final MediaType.Binary IMAGE_X_RGB
public static final MediaType.Binary IMAGE_X_XBITMAP
public static final MediaType.Binary IMAGE_X_XPIXMAP
public static final MediaType.Binary IMAGE_WEBP
public static final MediaType.Binary MESSAGE_HTTP
public static final MediaType.Binary MESSAGE_DELIVERY_STATUS
public static final MediaType.Binary MESSAGE_RFC822
public static final MediaType.Binary MULTIPART_MIXED
public static final MediaType.Binary MULTIPART_ALTERNATIVE
public static final MediaType.Binary MULTIPART_RELATED
public static final MediaType.Binary MULTIPART_FORM_DATA
public static final MediaType.Binary MULTIPART_SIGNED
public static final MediaType.Binary MULTIPART_ENCRYPTED
public static final MediaType.Binary MULTIPART_BYTERANGES
public static final MediaType.WithOpenCharset TEXT_ASP
public static final MediaType.WithOpenCharset TEXT_CACHE_MANIFEST
public static final MediaType.WithOpenCharset TEXT_CALENDAR
public static final MediaType.WithOpenCharset TEXT_CSS
public static final MediaType.WithOpenCharset TEXT_CSV
public static final MediaType.WithFixedCharset TEXT_EVENT_STREAM
public static final MediaType.WithOpenCharset TEXT_HTML
public static final MediaType.WithOpenCharset TEXT_MARKDOWN
public static final MediaType.WithOpenCharset TEXT_MCF
public static final MediaType.WithOpenCharset TEXT_PLAIN
public static final MediaType.WithOpenCharset TEXT_RICHTEXT
public static final MediaType.WithOpenCharset TEXT_TAB_SEPARATED_VALUES
public static final MediaType.WithOpenCharset TEXT_URI_LIST
public static final MediaType.WithOpenCharset TEXT_VND_WAP_WML
public static final MediaType.WithOpenCharset TEXT_VND_WAP_WMLSCRIPT
public static final MediaType.WithOpenCharset TEXT_X_ASM
public static final MediaType.WithOpenCharset TEXT_X_C
public static final MediaType.WithOpenCharset TEXT_X_COMPONENT
public static final MediaType.WithOpenCharset TEXT_X_H
public static final MediaType.WithOpenCharset TEXT_X_JAVA_SOURCE
public static final MediaType.WithOpenCharset TEXT_X_PASCAL
public static final MediaType.WithOpenCharset TEXT_X_SCRIPT
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTCSH
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTELISP
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTKSH
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTLISP
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTPERL
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTPERL_MODULE
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTPHYTON
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTREXX
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTSCHEME
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTSH
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTTCL
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTTCSH
public static final MediaType.WithOpenCharset TEXT_X_SCRIPTZSH
public static final MediaType.WithOpenCharset TEXT_X_SERVER_PARSED_HTML
public static final MediaType.WithOpenCharset TEXT_X_SETEXT
public static final MediaType.WithOpenCharset TEXT_X_SGML
public static final MediaType.WithOpenCharset TEXT_X_SPEECH
public static final MediaType.WithOpenCharset TEXT_X_UUENCODE
public static final MediaType.WithOpenCharset TEXT_X_VCALENDAR
public static final MediaType.WithOpenCharset TEXT_X_VCARD
public static final MediaType.WithOpenCharset TEXT_XML
public static final MediaType.Binary VIDEO_AVS_VIDEO
public static final MediaType.Binary VIDEO_DIVX
public static final MediaType.Binary VIDEO_GL
public static final MediaType.Binary VIDEO_MP4
public static final MediaType.Binary VIDEO_MPEG
public static final MediaType.Binary VIDEO_OGG
public static final MediaType.Binary VIDEO_QUICKTIME
public static final MediaType.Binary VIDEO_X_DV
public static final MediaType.Binary VIDEO_X_FLV
public static final MediaType.Binary VIDEO_X_MOTION_JPEG
public static final MediaType.Binary VIDEO_X_MS_ASF
public static final MediaType.Binary VIDEO_X_MSVIDEO
public static final MediaType.Binary VIDEO_X_SGI_MOVIE
public static final MediaType.Binary VIDEO_WEBM
public static final MediaType.Compressibility COMPRESSIBLE
public static final MediaType.Compressibility NOT_COMPRESSIBLE
public static final MediaType.Compressibility GZIPPED
public static MediaType.Binary applicationBinary(java.lang.String subType, boolean compressible, java.lang.String... fileExtensions)
public static MediaType.Binary applicationBinary(java.lang.String subType, MediaType.Compressibility compressibility, java.lang.String... fileExtensions)
public static MediaType.WithFixedCharset applicationWithFixedCharset(java.lang.String subType, HttpCharset charset, java.lang.String... fileExtensions)
public static MediaType.WithOpenCharset applicationWithOpenCharset(java.lang.String subType, java.lang.String... fileExtensions)
public static MediaType.Binary audio(java.lang.String subType, boolean compressible, java.lang.String... fileExtensions)
public static MediaType.Binary audio(java.lang.String subType, MediaType.Compressibility compressibility, java.lang.String... fileExtensions)
public static MediaType.Binary image(java.lang.String subType, boolean compressible, java.lang.String... fileExtensions)
public static MediaType.Binary image(java.lang.String subType, MediaType.Compressibility compressibility, java.lang.String... fileExtensions)
public static MediaType.Binary message(java.lang.String subType, boolean compressible, java.lang.String... fileExtensions)
public static MediaType.Binary message(java.lang.String subType, MediaType.Compressibility compressibility, java.lang.String... fileExtensions)
public static MediaType.WithOpenCharset text(java.lang.String subType, java.lang.String... fileExtensions)
public static MediaType.Binary video(java.lang.String subType, boolean compressible, java.lang.String... fileExtensions)
public static MediaType.Binary video(java.lang.String subType, MediaType.Compressibility compressibility, java.lang.String... fileExtensions)
public static MediaType.Binary customBinary(java.lang.String mainType, java.lang.String subType, boolean compressible)
public static MediaType.Binary customBinary(java.lang.String mainType, java.lang.String subType, MediaType.Compressibility compressibility)
public static MediaType.Binary customBinary(java.lang.String mainType, java.lang.String subType, boolean compressible, java.util.Map<java.lang.String,java.lang.String> params, boolean allowArbitrarySubtypes, java.lang.String... fileExtensions)
public static MediaType.Binary customBinary(java.lang.String mainType, java.lang.String subType, MediaType.Compressibility compressibility, java.util.Map<java.lang.String,java.lang.String> params, boolean allowArbitrarySubtypes, java.lang.String... fileExtensions)
public static MediaType.WithFixedCharset customWithFixedCharset(java.lang.String mainType, java.lang.String subType, HttpCharset charset, java.util.Map<java.lang.String,java.lang.String> params, boolean allowArbitrarySubtypes, java.lang.String... fileExtensions)
public static MediaType.WithOpenCharset customWithOpenCharset(java.lang.String mainType, java.lang.String subType, java.util.Map<java.lang.String,java.lang.String> params, boolean allowArbitrarySubtypes, java.lang.String... fileExtensions)
public static MediaType.Multipart customMultipart(java.lang.String subType, java.util.Map<java.lang.String,java.lang.String> params)
public static MediaType custom(java.lang.String value, boolean binary, boolean compressible)
public static MediaType custom(java.lang.String value, boolean binary, MediaType.Compressibility compressibility)
public static java.util.Optional<MediaType> lookup(java.lang.String mainType, java.lang.String subType)