- All Known Implementing Classes:
DefaultMimeTypeManager
public interface MimeTypeManager
The MimeTypeManager API.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMimeType
(String extension, String mimeType) Add the mime type.getMimeType
(String filename) Get the mime type.
-
Method Details
-
addMimeType
Add the mime type.- Parameters:
extension
- the extension (without the dot).mimeType
- the mime type to return.
-
getMimeType
Get the mime type.- Parameters:
filename
- the filename.- Returns:
- the mime type or null if not found.
-