com.sun.grizzly.util.http
Class MimeMap
java.lang.Object
com.sun.grizzly.util.http.MimeMap
- All Implemented Interfaces:
- FileNameMap
public class MimeMap
- extends Object
- implements FileNameMap
A mime type map that implements the java.net.FileNameMap interface.
- Author:
- James Duncan Davidson [duncan@eng.sun.com], Jason Hunter [jch@eng.sun.com]
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultMap
public static final Hashtable defaultMap
MimeMap
public MimeMap()
addContentType
public void addContentType(String extn,
String type)
getExtensions
public Enumeration getExtensions()
getContentType
public String getContentType(String extn)
removeContentType
public void removeContentType(String extn)
getExtension
public static String getExtension(String fileName)
- Get extension of file, without fragment id
getContentTypeFor
public String getContentTypeFor(String fileName)
- Specified by:
getContentTypeFor
in interface FileNameMap
Copyright © 2010 SUN Microsystems. All Rights Reserved.