Class MimeTypes
java.lang.Object
org.eclipse.jetty.http.MimeTypes
MIME Type enum and utilities
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Trie<MimeTypes.Type> private static final Loggerprivate static final Trie<ByteBuffer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMimeMapping(String extension, String type) Set a mime mappingAccess a mutable map of mime type to the charset assumed for that content type.static StringgetCharsetAssumedFromContentType(String contentType) static StringgetCharsetFromContentType(String value) static StringgetCharsetInferredFromContentType(String contentType) static Stringstatic StringgetDefaultMimeByExtension(String filename) Get the MIME type by filename extension.Access a mutable map of mime type to the charset inferred from that content type.getMimeByExtension(String filename) Get the MIME type by filename extension.static StringinferCharsetFromContentType(String contentType) Deprecated.private static StringnormalizeMimeType(String type) voidsetMimeMap(Map<String, String> mimeMap)
-
Field Details
-
LOG
-
TYPES
-
__dftMimeMap
-
__inferredEncodings
-
__assumedEncodings
-
CACHE
-
_mimeMap
-
-
Constructor Details
-
MimeTypes
public MimeTypes()Constructor.
-
-
Method Details
-
getMimeMap
-
setMimeMap
-
getDefaultMimeByExtension
-
getMimeByExtension
-
addMimeMapping
-
getKnownMimeTypes
-
normalizeMimeType
-
getCharsetFromContentType
-
getInferredEncodings
-
getAssumedEncodings
-
inferCharsetFromContentType
Deprecated. -
getCharsetInferredFromContentType
-
getCharsetAssumedFromContentType
-
getContentTypeWithoutCharset
-