|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.util.OwMimeTypes
public class OwMimeTypes
Utility class for mimetype descriptions mappings.
If the client wants to add more MIME types, or overwrite the existing settings,
the owdummy configuration provide a file called e.g. mimetypes.properties,
as an example.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Nested Class Summary | |
|---|---|
protected static class |
OwMimeTypes.OwFileObjectStatics
Mimetypes singleton with mimetype file extension mappings. |
| Field Summary | |
|---|---|
static String |
EXTENSION_FIELD
embedded extension field (IBM On Demand compatible) |
protected static OwMimeTypes.OwFileObjectStatics |
m_MimeTypes
mimetypes singleton |
| Constructor Summary | |
|---|---|
OwMimeTypes()
|
|
| Method Summary | |
|---|---|
static String |
getExtensionFromMime(String strMimeType_p)
get a file extension from MIME type |
static String |
getMimeParameter(String strMimeParameter_p,
String strParameterName_p)
retrieve a parameter from a MIME parameter string e.g. |
static String |
getMimeTypeFromExtension(String strExtension_p)
get MIME type from extension |
static void |
loadFromUrl(URL propsURL_p)
init the MimeType - loading data from URL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final OwMimeTypes.OwFileObjectStatics m_MimeTypes
public static final String EXTENSION_FIELD
| Constructor Detail |
|---|
public OwMimeTypes()
| Method Detail |
|---|
public static String getExtensionFromMime(String strMimeType_p)
strMimeType_p - String MIME type, can be null
public static String getMimeTypeFromExtension(String strExtension_p)
strExtension_p - String extension, can be null
public static String getMimeParameter(String strMimeParameter_p,
String strParameterName_p)
strParameterName_p - String name of parameter to retrieve
public static void loadFromUrl(URL propsURL_p)
throws Exception
propsURL_p - URL
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||