-
- All Implemented Interfaces:
public class ContentType.Companion
-
-
Field Summary
Fields Modifier and Type Field Description private final String
PLAIN
private final String
CSS
private final String
HTML
private final String
XML
private final String
OCTET_STREAM
private final String
JAVASCRIPT
private final String
JAVASCRIPT_LEGACY
private final String
JAVASCRIPT_MODERN
private final String
JSON
private final String
FORM_DATA
public final static ContentType.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final ContentType
getContentType(String mimeType)
final ContentType
getContentTypeByExtension(String extension)
final String
getMimeTypeByExtension(String extensions)
final String
getPLAIN()
final String
getCSS()
final String
getHTML()
final String
getXML()
final String
getOCTET_STREAM()
final String
getJAVASCRIPT()
final String
getJAVASCRIPT_LEGACY()
final String
getJAVASCRIPT_MODERN()
final String
getJSON()
final String
getFORM_DATA()
-
-
Method Detail
-
getContentType
final ContentType getContentType(String mimeType)
-
getContentTypeByExtension
final ContentType getContentTypeByExtension(String extension)
-
getMimeTypeByExtension
final String getMimeTypeByExtension(String extensions)
-
getOCTET_STREAM
final String getOCTET_STREAM()
-
getJAVASCRIPT
final String getJAVASCRIPT()
-
getJAVASCRIPT_LEGACY
final String getJAVASCRIPT_LEGACY()
-
getJAVASCRIPT_MODERN
final String getJAVASCRIPT_MODERN()
-
getFORM_DATA
final String getFORM_DATA()
-
-
-
-