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 notdefaultContentType
public java.lang.String forFileExtension(java.lang.String extension)
extension
- the file extension including preceding '.'defaultContentType
public java.lang.String getDefaultContentType()
public void init() throws MXException
MaximoCache
init
in interface MaximoCache
MXException
public void reload() throws MXException
MaximoCache
reload
in interface MaximoCache
MXException
public void reload(java.lang.String key) throws MXException
MaximoCache
reload
in interface MaximoCache
MXException
public java.lang.String getName()
MaximoCache
getName
in interface MaximoCache