Package org.frankframework.http.rest
Enum Class MediaTypes
- All Implemented Interfaces:
Serializable
,Comparable<MediaTypes>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if this enum matches a value in the provided 'Accept' header.static MediaTypes
returns the default charset for the given mediatype or null when non is allowedorg.springframework.util.MimeType
Returns the MimeType without any parameters (such as charset)org.springframework.util.MimeType
getMimeType
(String charset) boolean
Matches the provided 'Content-Type' to this enum, should always be valid, is not weightedstatic MediaTypes
Returns the enum constant of this class with the specified name.static MediaTypes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY
-
DETECT
-
TEXT
-
XML
-
JSON
-
PDF
-
OCTET
-
MULTIPART_RELATED
-
MULTIPART_FORMDATA
-
MULTIPART
-
TXT
-
CSS
-
CSV
-
MJS
-
HTML
-
JAR
-
DOC
-
EPUB
-
VSD
-
AZW
-
PPT
-
XLS
-
RAR
-
RTF
-
ICO
-
ICS
-
BMP
-
GIF
-
PNG
-
SVG
-
TIFF
-
JPG
-
OTF
-
TTF
-
WOFF
-
WOFF2
-
MPEG
-
MP3
-
MP4
-
MIDI
-
AAC
-
AVI
-
TS
-
WAV
-
WEBA
-
WEBM
-
WEBP
-
GZ
-
TAR
-
BZ
-
BZ2
-
ZIP
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDefaultCharset
returns the default charset for the given mediatype or null when non is allowed -
includes
Matches the provided 'Content-Type' to this enum, should always be valid, is not weighted -
accepts
Checks if this enum matches a value in the provided 'Accept' header. -
fromValue
-
getMimeType
public org.springframework.util.MimeType getMimeType()Returns the MimeType without any parameters (such as charset) -
getMimeType
-