Package org.eclipse.jetty.http
Enum Class MimeTypes.Type
- All Implemented Interfaces:
Serializable
,Comparable<MimeTypes.Type>
,Constable
- Enclosing class:
- MimeTypes
Enumeration of predefined MimeTypes. This is not exhaustive
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionasString()
getContentTypeField
(Charset charset) boolean
boolean
toString()
static MimeTypes.Type
Returns the enum constant of this class with the specified name.static MimeTypes.Type[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FORM_ENCODED
-
MESSAGE_HTTP
-
MULTIPART_BYTERANGES
-
MULTIPART_FORM_DATA
-
TEXT_HTML
-
TEXT_PLAIN
-
TEXT_XML
-
TEXT_JSON
-
APPLICATION_JSON
-
TEXT_HTML_8859_1
-
TEXT_HTML_UTF_8
-
TEXT_PLAIN_8859_1
-
TEXT_PLAIN_UTF_8
-
TEXT_XML_8859_1
-
TEXT_XML_UTF_8
-
TEXT_JSON_8859_1
-
TEXT_JSON_UTF_8
-
APPLICATION_JSON_8859_1
-
APPLICATION_JSON_UTF_8
-
-
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
-
getCharset
-
getCharsetString
-
is
-
asString
-
toString
- Overrides:
toString
in classEnum<MimeTypes.Type>
-
isCharsetAssumed
public boolean isCharsetAssumed() -
getContentTypeField
-
getContentTypeField
-
getBaseType
-