Package org.eclipse.jetty.http
Enum MimeTypes.Type
- All Implemented Interfaces:
Serializable
,Comparable<MimeTypes.Type>
,java.lang.constant.Constable
- Enclosing class:
- MimeTypes
-
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 TypeMethodDescriptionasBuffer()
asString()
boolean
boolean
toString()
static MimeTypes.Type
Returns the enum constant of this type with the specified name.static MimeTypes.Type[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
asBuffer
-
getCharset
-
getCharsetString
-
is
-
asString
-
toString
- Overrides:
toString
in classEnum<MimeTypes.Type>
-
isCharsetAssumed
public boolean isCharsetAssumed() -
getContentTypeField
-
getBaseType
-