cloud.piranha.api.MimeTypeManager
public class DefaultMimeTypeManager
extends java.lang.Object
implements cloud.piranha.api.MimeTypeManager
Constructor | Description |
---|---|
DefaultMimeTypeManager() |
Constructor.
|
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.
|
public void addMimeType(java.lang.String extension, java.lang.String mimeType)
addMimeType
in interface cloud.piranha.api.MimeTypeManager
extension
- the extension (without the dot).mimeType
- the mime type to return.public java.lang.String getMimeType(java.lang.String filename)
getMimeType
in interface cloud.piranha.api.MimeTypeManager
filename
- the filename.Copyright © 2020 Piranha Cloud. All rights reserved.