Package org.eclipse.jetty.http
Enum Class MimeTypes.Type
- All Implemented Interfaces:
Serializable
,Comparable<MimeTypes.Type>
,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 ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final MimeTypes.Type
private final ByteBuffer
private final Charset
private final String
private final HttpField
private final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasBuffer()
asString()
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
-
-
Field Details
-
_string
-
_base
-
_buffer
-
_charset
-
_charsetString
-
_assumedCharset
private final boolean _assumedCharset -
_field
-
-
Constructor Details
-
Type
-
Type
-
Type
-
-
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
-
asBuffer
-
getCharset
-
getCharsetString
-
is
-
asString
-
toString
- Overrides:
toString
in classEnum<MimeTypes.Type>
-
isCharsetAssumed
public boolean isCharsetAssumed() -
getContentTypeField
-
getBaseType
-