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