Package rife.cmf
Class MimeType
This is a typed enumeration of all the mime types that the content
management framework specifically knows about.
The types that are defined here can be validated and transformed.
- Since:
- 1.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MimeType
Theapplication/xhtml+xml
mime type.static final String
static final MimeType
Theimage/gif
mime type.static final String
static final MimeType
Theimage/jpeg
mime type.static final String
static final MimeType
Theimage/png
mime type.static final String
static final MimeType
A generic mime type indicating that the content should be stored as raw data without any mime-type related processing.static final String
static final MimeType
Thetext/plain
mime type.static final String
static final MimeType
Thetext/plain
mime type.static final String
Fields inherited from class rife.datastructures.EnumClass
identifier_
-
Method Summary
Modifier and TypeMethodDescriptionstatic MimeType
getMimeType
(String identifier) Returns theMimeType
instance that corresponds to a given textual identifier.Methods inherited from class rife.datastructures.EnumClass
equals, getIdentifier, getIdentifiers, getMember, getMembers, hashCode, registerType, toString
-
Field Details
-
APPLICATION_XHTML_IDENTIFIER
- See Also:
-
IMAGE_GIF_IDENTIFIER
- See Also:
-
IMAGE_JPEG_IDENTIFIER
- See Also:
-
IMAGE_PNG_IDENTIFIER
- See Also:
-
TEXT_PLAIN_IDENTIFIER
- See Also:
-
TEXT_XML_IDENTIFIER
- See Also:
-
RAW_IDENTIFIER
- See Also:
-
APPLICATION_XHTML
Theapplication/xhtml+xml
mime type. -
IMAGE_GIF
Theimage/gif
mime type. -
IMAGE_JPEG
Theimage/jpeg
mime type. -
IMAGE_PNG
Theimage/png
mime type. -
TEXT_PLAIN
Thetext/plain
mime type. -
TEXT_XML
Thetext/plain
mime type. -
RAW
A generic mime type indicating that the content should be stored as raw data without any mime-type related processing.
-
-
Method Details
-
getMimeType
Returns theMimeType
instance that corresponds to a given textual identifier.- Parameters:
identifier
- the identifier of the mime type that has to be retrieved- Returns:
- the requested
MimeType
; ornull
if theMimeType
is not supported - Since:
- 1.0
-