Define Http mimetype constant as static string in Java
Description
The following code shows how to define Http mimetype constant as static string.
Example
public final static String
MIMETYPE_TEXT_HTML = "text/html",
MIMETYPE_TEXT_PLAIN = "text/plain",
MIMETYPE_TEXT_XML = "text/xml",
MIMETYPE_TEXT_HTML_8859_1 = "text/html; charset=iso-8859-1",
MIMETYPE_TEXT_PLAIN_8859_1 = "text/plain; charset=iso-8859-1",
MIMETYPE_TEXT_XML_8859_1 = "text/xml; charset=iso-8859-1",
MIMETYPE_TEXT_HTML_UTF_8 = "text/html; charset=utf-8",
MIMETYPE_TEXT_PLAIN_UTF_8 = "text/plain; charset=utf-8",
MIMETYPE_TEXT_XML_UTF_8 = "text/xml; charset=utf-8";