java.lang.Object
org.eclipse.jetty.http.MimeTypes
- Direct Known Subclasses:
MimeTypes.Mutable
MIME Type enum and utilities
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumEnumeration of predefined MimeTypes.static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MimeTypes.TypegetBaseType(String contentType) getCharsetAssumedFromContentType(String contentType) static StringgetCharsetFromContentType(String value) getCharsetInferredFromContentType(String contentType) static StringgetMimeByExtension(String filename) Get the MIME type by filename extension.getMimeForExtension(String extension) static booleanisKnownLocale(Locale locale)
-
Field Details
-
CACHE
-
_mimeMap
-
_inferredEncodings
-
_assumedEncodings
-
DEFAULTS
-
-
Constructor Details
-
MimeTypes
public MimeTypes() -
MimeTypes
-
-
Method Details
-
isKnownLocale
-
getBaseType
-
getMimeByExtension
Get the MIME type by filename extension.- Parameters:
filename- A file name- Returns:
- MIME type matching the last dot extension of the file name, or matching "*" if none found.
-
getMimeForExtension
-
getCharsetInferredFromContentType
-
getCharsetAssumedFromContentType
-
getMimeMap
-
getInferredMap
-
getAssumedMap
-
getCharsetFromContentType
-
getContentTypeWithoutCharset
-