Package io.wcm.wcm.commons.contenttype
Class ContentType
- java.lang.Object
-
- io.wcm.wcm.commons.contenttype.ContentType
-
@ProviderType public final class ContentType extends java.lang.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 java.lang.String
CSS
CSS with UTF-8static java.lang.String
CSV
CSV (no charset included in mime type because charset can differ from platform to platform)static java.lang.String
DOWNLOAD
MIME type used for items that should initiate a "save-as" dialog in the browser.static java.lang.String
GIF
GIF imagestatic java.lang.String
HTML
HTML with UTF-8static java.lang.String
JAVASCRIPT
JavaScript with UTF-8static java.lang.String
JPEG
JPEG imagestatic java.lang.String
JSON
JSON with UTF-8static java.lang.String
OCTET_STREAM
Default binary content typestatic java.lang.String
PDF
PDFstatic java.lang.String
PLAINTEXT
Plain text with UTF-8static java.lang.String
PNG
PNG imagestatic java.lang.String
SVG
SVGstatic java.lang.String
SWF
Flash filestatic java.lang.String
TIFF
TIFFstatic java.lang.String
WEBP
WebPstatic java.lang.String
XHTML
XHTML (no charset, charset is defined within XML markup)static java.lang.String
XML
XML (no charset, charset is defined within XML markup)static java.lang.String
ZIP
ZIP
-
-
-
Field Detail
-
HTML
public static final java.lang.String HTML
HTML with UTF-8
-
JSON
public static final java.lang.String JSON
JSON with UTF-8
-
PLAINTEXT
public static final java.lang.String PLAINTEXT
Plain text with UTF-8
-
CSS
public static final java.lang.String CSS
CSS with UTF-8
-
JAVASCRIPT
public static final java.lang.String JAVASCRIPT
JavaScript with UTF-8
-
XML
public static final java.lang.String XML
XML (no charset, charset is defined within XML markup)- See Also:
- Constant Field Values
-
XHTML
public static final java.lang.String XHTML
XHTML (no charset, charset is defined within XML markup)- See Also:
- Constant Field Values
-
ZIP
public static final java.lang.String ZIP
ZIP- See Also:
- Constant Field Values
-
OCTET_STREAM
public static final java.lang.String OCTET_STREAM
Default binary content type- See Also:
- Constant Field Values
-
DOWNLOAD
public static final java.lang.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 java.lang.String GIF
GIF image- See Also:
- Constant Field Values
-
JPEG
public static final java.lang.String JPEG
JPEG image- See Also:
- Constant Field Values
-
PNG
public static final java.lang.String PNG
PNG image- See Also:
- Constant Field Values
-
SWF
public static final java.lang.String SWF
Flash file- See Also:
- Constant Field Values
-
CSV
public static final java.lang.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 java.lang.String PDF
PDF- See Also:
- Constant Field Values
-
SVG
public static final java.lang.String SVG
SVG- See Also:
- Constant Field Values
-
TIFF
public static final java.lang.String TIFF
TIFF- See Also:
- Constant Field Values
-
WEBP
public static final java.lang.String WEBP
WebP- See Also:
- Constant Field Values
-
-