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