|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.pbemengine.engine.ng.base.webserver.MIMERepository
public class MIMERepository
A repository of MIME types associated with file extensions, used for automatically determining the content-type to set for direct file requests rather than action invocations. Implementing rulesets that have file types not included in this repository can add them by invoking the addType method.
| Method Summary | |
|---|---|
void |
addType(java.lang.String extension,
java.lang.String mime)
Add a MIME type associated with a given extension |
static MIMERepository |
getInstance()
Get an instance of the MIME repository |
java.lang.String |
getType(java.lang.String extension)
Get the mime type for a given extension |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MIMERepository getInstance()
public void addType(java.lang.String extension,
java.lang.String mime)
extension - The extension to add the mime type formime - The MIME type for this extensionpublic java.lang.String getType(java.lang.String extension)
extension - The extension to check for
null if unknown.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||