|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--java.util.HashMap | +--org.jpublish.util.MimeTypeMap
Data structure representing a mime type map.
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
static java.lang.String |
DEFAULT_MIME_TYPE
The default mime type if none is set. |
Constructor Summary | |
MimeTypeMap()
|
Method Summary | |
java.lang.String |
getDefaultMimeType()
Get the default mime type. |
java.lang.String |
getMimeType(java.lang.String extension)
Get the mime type for the given file extension. |
void |
setDefaultMimeType(java.lang.String defaultMimeType)
Set the default mime type. |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Field Detail |
public static final java.lang.String DEFAULT_MIME_TYPE
Constructor Detail |
public MimeTypeMap()
Method Detail |
public java.lang.String getMimeType(java.lang.String extension)
public java.lang.String getDefaultMimeType()
public void setDefaultMimeType(java.lang.String defaultMimeType)
defaultMimeType
- The new default mime type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |