Package org.eclipse.jetty.http
Class MimeTypes
java.lang.Object
org.eclipse.jetty.http.MimeTypes
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMimeMapping
(String extension, String type) Set a mime mappingAccess a mutable map of mime type to the charset assumed for that content type.static String
getCharsetAssumedFromContentType
(String contentType) static String
getCharsetFromContentType
(String value) static String
getCharsetInferredFromContentType
(String contentType) static String
static String
getDefaultMimeByExtension
(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.void
setMimeMap
(Map<String, String> mimeMap)
-
Field Details
-
CACHE
-
-
Constructor Details
-
MimeTypes
public MimeTypes()Constructor.
-
-
Method Details
-
getMimeMap
-
setMimeMap
-
getDefaultMimeByExtension
-
getMimeByExtension
-
addMimeMapping
-
getKnownMimeTypes
-
getCharsetFromContentType
-
getInferredEncodings
-
getAssumedEncodings
-
getCharsetInferredFromContentType
-
getCharsetAssumedFromContentType
-
getContentTypeWithoutCharset
-