public class FileExtensionCacheImpl extends java.lang.Object implements MaximoCache
| Constructor and Description |
|---|
FileExtensionCacheImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
forFileExtension(java.lang.String extension)
Returns the Content type found on synonym domain MIMETYPE, for the given
file extension (including '.' in front of it).
|
java.lang.String |
forFileName(java.lang.String docFileName)
Returns the Content type found on synonym domain MIMETYPE, for the given
file name.
|
java.lang.String |
getDefaultContentType() |
java.lang.String |
getName()
Returns the name of the cache object.
|
void |
init()
Initialize the cache object.
|
void |
reload()
Reloads the cache object.
|
void |
reload(java.lang.String key)
Initialize a specific component of the cache identified by the key.
|
public java.lang.String forFileName(java.lang.String docFileName)
docFileName - the file name, may include path or notdefaultContentTypepublic java.lang.String forFileExtension(java.lang.String extension)
extension - the file extension including preceding '.'defaultContentTypepublic java.lang.String getDefaultContentType()
public void init()
throws MXException
MaximoCacheinit in interface MaximoCacheMXExceptionpublic void reload()
throws MXException
MaximoCachereload in interface MaximoCacheMXExceptionpublic void reload(java.lang.String key)
throws MXException
MaximoCachereload in interface MaximoCacheMXExceptionpublic java.lang.String getName()
MaximoCachegetName in interface MaximoCache