@Deprecated public class MIMEMapping extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
MIMEMapping.MIMEMappingItem
Deprecated.
Used to keep the configuration in memory.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CHAR_ENCODING
Deprecated.
|
static String |
DEFAULT_EXTENSION
Deprecated.
|
static String |
DEFAULT_ICON
Deprecated.
|
static String |
DEFAULT_ICON_STYLE
Deprecated.
|
static String |
ICONS_PATH
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
getContentEncoding(String contentType)
Deprecated.
|
static String |
getContentEncodingOrDefault(String contentType)
Deprecated.
|
static String |
getMIMEType(String key)
Deprecated.
Get MIME type String.
|
static String |
getMIMETypeIcon(String extension)
Deprecated.
Returns the icon used for rendering this type.
|
static String |
getMIMETypeIconStyle(String mimeType)
Deprecated.
Returns the icon css style name.
|
static String |
getMIMETypeOrDefault(String extension)
Deprecated.
Returns the mime-type associated with this extension, or the server's default.
|
static void |
init()
Deprecated.
Reads all configured mime mapping (config/server/MIMEMapping).
|
static void |
load()
Deprecated.
Reads all configured mime mapping (config/server/MIMEMapping).
|
static void |
reload()
Deprecated.
|
public static final String ICONS_PATH
public static final String DEFAULT_ICON
public static final String DEFAULT_ICON_STYLE
public static final String DEFAULT_CHAR_ENCODING
public static final String DEFAULT_EXTENSION
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 requestedpublic static String getMIMETypeOrDefault(String extension)
public static String getContentEncodingOrDefault(String contentType)
public static String getMIMETypeIcon(String extension)
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.