MimeType

Undocumented in source.
class MimeType {}

Constructors

this
this(string s)
Undocumented in source.
this
this(string s, MimeType base)
Undocumented in source.
this
this(string s, string charset)
Undocumented in source.

Members

Functions

asString
string asString()
Undocumented in source. Be warned that the author may not have intended to support it.
getBaseType
MimeType getBaseType()
Undocumented in source. Be warned that the author may not have intended to support it.
getCharset
Charset getCharset()
Undocumented in source. Be warned that the author may not have intended to support it.
getCharsetString
string getCharsetString()
Undocumented in source. Be warned that the author may not have intended to support it.
isCharsetAssumed
bool isCharsetAssumed()
Undocumented in source. Be warned that the author may not have intended to support it.
isSame
bool isSame(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

ALL
MimeType ALL;

Public constant mime type that includes all media ranges (i.e. "*/*").

APPLICATION_JSON
MimeType APPLICATION_JSON;
Undocumented in source.
APPLICATION_JSON_8859_1
MimeType APPLICATION_JSON_8859_1;
Undocumented in source.
APPLICATION_JSON_UTF_8
MimeType APPLICATION_JSON_UTF_8;
Undocumented in source.
APPLICATION_OCTET_STREAM
MimeType APPLICATION_OCTET_STREAM;
Undocumented in source.
APPLICATION_XML
MimeType APPLICATION_XML;
Undocumented in source.
APPLICATION_X_WWW_FORM
MimeType APPLICATION_X_WWW_FORM;
Undocumented in source.
FORM_ENCODED
MimeType FORM_ENCODED;
Undocumented in source.
IMAGE_GIF
MimeType IMAGE_GIF;
Undocumented in source.
IMAGE_JPEG
MimeType IMAGE_JPEG;
Undocumented in source.
IMAGE_PNG
MimeType IMAGE_PNG;
Undocumented in source.
MESSAGE_HTTP
MimeType MESSAGE_HTTP;
Undocumented in source.
MULTIPART_ALTERNATIVE
MimeType MULTIPART_ALTERNATIVE;
Undocumented in source.
MULTIPART_BYTERANGES
MimeType MULTIPART_BYTERANGES;
Undocumented in source.
MULTIPART_DIGEST
MimeType MULTIPART_DIGEST;
Undocumented in source.
MULTIPART_FORM
MimeType MULTIPART_FORM;
Undocumented in source.
MULTIPART_MIXED
MimeType MULTIPART_MIXED;
Undocumented in source.
MULTIPART_PARALLEL
MimeType MULTIPART_PARALLEL;
Undocumented in source.
TEXT_HTML
MimeType TEXT_HTML;
Undocumented in source.
TEXT_HTML_8859_1
MimeType TEXT_HTML_8859_1;
Undocumented in source.
TEXT_HTML_UTF_8
MimeType TEXT_HTML_UTF_8;
Undocumented in source.
TEXT_JSON
MimeType TEXT_JSON;
Undocumented in source.
TEXT_JSON_8859_1
MimeType TEXT_JSON_8859_1;
Undocumented in source.
TEXT_JSON_UTF_8
MimeType TEXT_JSON_UTF_8;
Undocumented in source.
TEXT_PLAIN
MimeType TEXT_PLAIN;
Undocumented in source.
TEXT_PLAIN_8859_1
MimeType TEXT_PLAIN_8859_1;
Undocumented in source.
TEXT_PLAIN_UTF_8
MimeType TEXT_PLAIN_UTF_8;
Undocumented in source.
TEXT_XML
MimeType TEXT_XML;
Undocumented in source.
TEXT_XML_8859_1
MimeType TEXT_XML_8859_1;
Undocumented in source.
TEXT_XML_UTF_8
MimeType TEXT_XML_UTF_8;
Undocumented in source.
values
Array!MimeType values;
Undocumented in source.

Variables

ALL_VALUE
enum string ALL_VALUE;

A string equivalent of {@link MimeType#ALL}.

APPLICATION_JSON_VALUE
enum string APPLICATION_JSON_VALUE;

A string equivalent of {@link MimeType#APPLICATION_JSON}.

APPLICATION_OCTET_STREAM_VALUE
enum string APPLICATION_OCTET_STREAM_VALUE;

A string equivalent of {@link MimeType#APPLICATION_OCTET_STREAM}.

APPLICATION_XML_VALUE
enum string APPLICATION_XML_VALUE;

A string equivalent of {@link MimeType#APPLICATION_XML}.

APPLICATION_X_WWW_FORM_VALUE
enum string APPLICATION_X_WWW_FORM_VALUE;
IMAGE_GIF_VALUE
enum string IMAGE_GIF_VALUE;

A string equivalent of {@link MimeType#IMAGE_GIF}.

IMAGE_JPEG_VALUE
enum string IMAGE_JPEG_VALUE;

A string equivalent of {@link MimeType#IMAGE_JPEG}.

IMAGE_PNG_VALUE
enum string IMAGE_PNG_VALUE;

A string equivalent of {@link MimeType#IMAGE_PNG}.

MULTIPART_ALTERNATIVE_VALUE
enum string MULTIPART_ALTERNATIVE_VALUE;

The "multipart/alternative" type is syntactically identical to "multipart/mixed", but the semantics are different. In particular, each of the body parts is an "alternative" version of the same information.

MULTIPART_DIGEST_VALUE
enum string MULTIPART_DIGEST_VALUE;

This type is syntactically identical to "multipart/mixed", but the semantics are different. In particular, in a digest, the default {@code Content-Type} value for a body part is changed from "text/plain" to "message/rfc822".

MULTIPART_FORM_VALUE
enum string MULTIPART_FORM_VALUE;

The media-type multipart/form-data follows the rules of all multipart MIME data streams as outlined in RFC 2046. In forms, there are a series of fields to be supplied by the user who fills out the form. Each field has a name. Within a given form, the names are unique.

MULTIPART_MIXED_VALUE
enum string MULTIPART_MIXED_VALUE;

The "mixed" subtype of "multipart" is intended for use when the body parts are independent and need to be bundled in a particular order. Any "multipart" subtypes that an implementation does not recognize must be treated as being of subtype "mixed".

MULTIPART_PARALLEL_VALUE
enum string MULTIPART_PARALLEL_VALUE;

This type is syntactically identical to "multipart/mixed", but the semantics are different. In particular, in a parallel entity, the order of body parts is not significant.

TEXT_HTML_VALUE
enum string TEXT_HTML_VALUE;

A string equivalent of {@link MimeType#TEXT_HTML}.

TEXT_JSON_VALUE
enum string TEXT_JSON_VALUE;
TEXT_PLAIN_VALUE
enum string TEXT_PLAIN_VALUE;

A string equivalent of {@link MimeType#TEXT_PLAIN}.

TEXT_XML_VALUE
enum string TEXT_XML_VALUE;

A string equivalent of {@link MimeType#TEXT_XML}.

Meta