Package org.eclipse.jetty.http
Class MimeTypes
java.lang.Object
org.eclipse.jetty.http.MimeTypes
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
MIME Type enum and utilities
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMimeMapping(String extension, String type) Deprecated.Set a mime mappingDeprecated.Access a mutable map of mime type to the charset assumed for that content type.static StringgetCharsetAssumedFromContentType(String contentType) Deprecated.static StringgetCharsetFromContentType(String value) Deprecated.static StringgetCharsetInferredFromContentType(String contentType) Deprecated.static StringDeprecated.static StringgetDefaultMimeByExtension(String filename) Deprecated.Get the MIME type by filename extension.Deprecated.Access a mutable map of mime type to the charset inferred from that content type.Deprecated.getMimeByExtension(String filename) Deprecated.Get the MIME type by filename extension.Deprecated.static StringinferCharsetFromContentType(String contentType) Deprecated.voidsetMimeMap(Map<String, String> mimeMap) Deprecated.
-
Field Details
-
CACHE
Deprecated.
-
-
Constructor Details
-
MimeTypes
public MimeTypes()Deprecated.Constructor.
-
-
Method Details
-
getMimeMap
Deprecated. -
setMimeMap
Deprecated.- Parameters:
mimeMap- A Map of file extension to mime-type.
-
getDefaultMimeByExtension
Deprecated.Get the MIME type by filename extension. Lookup only the static default mime map.- Parameters:
filename- A file name- Returns:
- MIME type matching the longest dot extension of the file name.
-
getMimeByExtension
Deprecated.Get the MIME type by filename extension. Lookup the content and static default mime maps.- Parameters:
filename- A file name- Returns:
- MIME type matching the longest dot extension of the file name.
-
addMimeMapping
Deprecated.Set a mime mapping- Parameters:
extension- the extensiontype- the mime type
-
getKnownMimeTypes
Deprecated. -
getCharsetFromContentType
Deprecated. -
getInferredEncodings
Deprecated.Access a mutable map of mime type to the charset inferred from that content type. An inferred encoding is used by when encoding/decoding a stream and is explicitly set in any metadata (eg Content-Type).- Returns:
- Map of mime type to charset
-
getAssumedEncodings
Deprecated.Access a mutable map of mime type to the charset assumed for that content type. An assumed encoding is used by when encoding/decoding a stream, but is not explicitly set in any metadata (eg Content-Type).- Returns:
- Map of mime type to charset
-
inferCharsetFromContentType
Deprecated. -
getCharsetInferredFromContentType
Deprecated. -
getCharsetAssumedFromContentType
Deprecated. -
getContentTypeWithoutCharset
Deprecated.
-