Package io.wcm.wcm.commons.contenttype
Class ContentType
- java.lang.Object
-
- io.wcm.wcm.commons.contenttype.ContentType
-
@ProviderType public final class ContentType extends Object
Frequently used content types/mime types. All mime types that that require encoding definition include UTF-8 as charset.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCSSCSS with UTF-8static StringCSVCSV (no charset included in mime type because charset can differ from platform to platform)static StringDOWNLOADMIME type used for items that should initiate a "save-as" dialog in the browser.static StringGIFGIF imagestatic StringHTMLHTML with UTF-8static StringJAVASCRIPTJavaScript with UTF-8static StringJPEGJPEG imagestatic StringJSONJSON with UTF-8static StringOCTET_STREAMDefault binary content typestatic StringPDFPDFstatic StringPLAINTEXTPlain text with UTF-8static StringPNGPNG imagestatic StringSVGSVGstatic StringSWFFlash filestatic StringTIFFTIFFstatic StringWEBPWebPstatic StringXHTMLXHTML (no charset, charset is defined within XML markup)static StringXMLXML (no charset, charset is defined within XML markup)static StringZIPZIP
-
-
-
Field Detail
-
HTML
public static final String HTML
HTML with UTF-8
-
JSON
public static final String JSON
JSON with UTF-8
-
PLAINTEXT
public static final String PLAINTEXT
Plain text with UTF-8
-
CSS
public static final String CSS
CSS with UTF-8
-
JAVASCRIPT
public static final String JAVASCRIPT
JavaScript with UTF-8
-
XML
public static final String XML
XML (no charset, charset is defined within XML markup)- See Also:
- Constant Field Values
-
XHTML
public static final String XHTML
XHTML (no charset, charset is defined within XML markup)- See Also:
- Constant Field Values
-
ZIP
public static final String ZIP
ZIP- See Also:
- Constant Field Values
-
OCTET_STREAM
public static final String OCTET_STREAM
Default binary content type- See Also:
- Constant Field Values
-
DOWNLOAD
public static final String 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:
- Constant Field Values
-
GIF
public static final String GIF
GIF image- See Also:
- Constant Field Values
-
JPEG
public static final String JPEG
JPEG image- See Also:
- Constant Field Values
-
PNG
public static final String PNG
PNG image- See Also:
- Constant Field Values
-
SWF
public static final String SWF
Flash file- See Also:
- Constant Field Values
-
CSV
public static final String CSV
CSV (no charset included in mime type because charset can differ from platform to platform)- See Also:
- Constant Field Values
-
PDF
public static final String PDF
PDF- See Also:
- Constant Field Values
-
SVG
public static final String SVG
SVG- See Also:
- Constant Field Values
-
TIFF
public static final String TIFF
TIFF- See Also:
- Constant Field Values
-
WEBP
public static final String WEBP
WebP- See Also:
- Constant Field Values
-
-