Package net.aifusion.cimserver
Enum MimeType
- All Implemented Interfaces:
Serializable
,Comparable<MimeType>
,java.lang.constant.Constable
Known MIME types to the Server
- Author:
- Sharad Singhal
-
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 TypeMethodDescriptionGet an extension for this typegetType()
Get the mime type associated with this typestatic MimeType
Look up a mime type associated with a given extensionstatic MimeType
Returns the enum constant of this type with the specified name.static MimeType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PLAINTEXT
Plain text type -
MOF
MOF text type -
HTML
HTML type -
TEXT
Plain text type -
BINARY
Binary stream type -
ZIP
Chunked ang zipped type
-
-
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
-
getExtension
Get an extension for this type- Returns:
- - extension associated with this type
-
getType
Get the mime type associated with this type- Returns:
- - mime type associated with this type
-
lookup
Look up a mime type associated with a given extension- Parameters:
h
- - extension for the type- Returns:
- - first matching MimeType that matches the extension. Default is BINARY (RFC 2616)
-