|
||||||||||
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 String |
DEFAULT_ICON
|
static String |
ICONS_PATH
|
Method Summary | |
---|---|
static String |
getContentEncoding(String contentType)
|
static String |
getContentEncodingOrDefault(String contentType)
|
static String |
getMIMEType(String key)
Get MIME type String. |
static String |
getMIMETypeIcon(String extension)
Returns the icon used for rendering this type. |
static String |
getMIMETypeOrDefault(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 String ICONS_PATH
public static final String DEFAULT_ICON
Method Detail |
---|
public static void init()
public static void load()
public static void reload()
public static String getMIMEType(String key)
key
- extension for which MIME type is requested
public static String getMIMETypeOrDefault(String extension)
public static String getContentEncoding(String contentType)
public static String getContentEncodingOrDefault(String contentType)
public static String getMIMETypeIcon(String extension)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |