|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.webadmin.util.MimeTable
MimeTable maps a file extension to a mime type.
Field Summary | |
static String |
BINARY_MIME_TYPE
the default mime type for binaries |
protected static Hashtable |
mimeMappings
holds the extensions/mime types |
static String |
XML_MIME_TYPE
the default mime type for xml documents |
Constructor Summary | |
MimeTable()
|
Method Summary | |
static void |
addMimeConfig(org.w3c.dom.Document doc)
Add the given mime Document to this mime table. |
static void |
configure(String location)
Configures the Mime table. |
static String |
getMimeType(String resourceName)
Returns the mime type for the given name. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String BINARY_MIME_TYPE
public static final String XML_MIME_TYPE
protected static Hashtable mimeMappings
Constructor Detail |
public MimeTable()
Method Detail |
public static void configure(String location)
<mime location="/some/path">or if the Configuration should be loaded out of the Classpath:
<mime location="resource://org.a.MyFile">
public static void addMimeConfig(org.w3c.dom.Document doc)
<mime> <mime-mapping> <extension>xml</extension> <mime-type>xml</mime-type> </mime-mapping> ... </mime>
doc
- mime config.public static String getMimeType(String resourceName)
resourceName
-
public static void main(String[] args) throws Exception
Exception
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |