Package io.wcm.wcm.commons.contenttype
Class ContentType
java.lang.Object
io.wcm.wcm.commons.contenttype.ContentType
Frequently used content types/mime types.
All mime types that that require encoding definition include UTF-8 as charset.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCSS with UTF-8static final StringCSV (no charset included in mime type because charset can differ from platform to platform)static final StringMIME type used for items that should initiate a "save-as" dialog in the browser.static final StringGIF imagestatic final StringHTML with UTF-8static final StringJavaScript with UTF-8static final StringJPEG imagestatic final StringJSON with UTF-8static final StringDefault binary content typestatic final StringPDFstatic final StringPlain text with UTF-8static final StringPNG imagestatic final StringSVGstatic final StringFlash filestatic final StringTIFFstatic final StringWebPstatic final StringXHTML (no charset, charset is defined within XML markup)static final StringXML (no charset, charset is defined within XML markup)static final StringZIP -
Method Summary
-
Field Details
-
HTML
HTML with UTF-8 -
JSON
JSON with UTF-8 -
PLAINTEXT
Plain text with UTF-8 -
CSS
CSS with UTF-8 -
JAVASCRIPT
JavaScript with UTF-8 -
XML
XML (no charset, charset is defined within XML markup)- See Also:
-
XHTML
XHTML (no charset, charset is defined within XML markup)- See Also:
-
ZIP
ZIP- See Also:
-
OCTET_STREAM
Default binary content type- See Also:
-
DOWNLOAD
MIME type used for items that should initiate a "save-as" dialog in the browser. (This is a non-standard MIME type by design to make sure the browser does not do anything with it).- See Also:
-
GIF
GIF image- See Also:
-
JPEG
JPEG image- See Also:
-
PNG
PNG image- See Also:
-
SWF
Flash file- See Also:
-
CSV
CSV (no charset included in mime type because charset can differ from platform to platform)- See Also:
-
PDF
PDF- See Also:
-
SVG
SVG- See Also:
-
TIFF
TIFF- See Also:
-
WEBP
WebP- See Also:
-