|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.beans.config.MIMEMapping
public class MIMEMapping
Manages mappings of file extensions with their MIME types and icon.
Nested Class Summary | |
---|---|
protected static class |
MIMEMapping.MIMEMappingItem
Used to keep the configuration in memory. |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ICON
|
static java.lang.String |
ICONS_PATH
|
Method Summary | |
---|---|
static java.lang.String |
getContentEncoding(java.lang.String contentType)
|
static java.lang.String |
getContentEncodingOrDefault(java.lang.String contentType)
|
static java.lang.String |
getMIMEType(java.lang.String key)
Get MIME type String. |
static java.lang.String |
getMIMETypeIcon(java.lang.String extension)
Returns the icon used for rendering this type. |
static java.lang.String |
getMIMETypeOrDefault(java.lang.String extension)
Returns the mime-type associated with this extension, or the server's default. |
static void |
init()
Reads all configured mime mapping (config/server/MIMEMapping). |
static void |
load()
Reads all configured mime mapping (config/server/MIMEMapping). |
static void |
reload()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ICONS_PATH
public static final java.lang.String DEFAULT_ICON
Method Detail |
---|
public static void init()
public static void load()
public static void reload()
public static java.lang.String getMIMEType(java.lang.String key)
key
- extension for which MIME type is requested
public static java.lang.String getMIMETypeOrDefault(java.lang.String extension)
public static java.lang.String getContentEncoding(java.lang.String contentType)
public static java.lang.String getContentEncodingOrDefault(java.lang.String contentType)
public static java.lang.String getMIMETypeIcon(java.lang.String extension)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |