org.apache.tomcat.util.http
Class MimeMap
java.lang.Object
org.apache.tomcat.util.http.MimeMap
- All Implemented Interfaces:
- java.net.FileNameMap
public class MimeMap
- extends java.lang.Object
- implements java.net.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]
Field Summary |
static java.util.Hashtable<java.lang.String,java.lang.String> |
defaultMap
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultMap
public static java.util.Hashtable<java.lang.String,java.lang.String> defaultMap
MimeMap
public MimeMap()
addContentType
public void addContentType(java.lang.String extn,
java.lang.String type)
getExtensions
public java.util.Enumeration getExtensions()
getContentType
public java.lang.String getContentType(java.lang.String extn)
removeContentType
public void removeContentType(java.lang.String extn)
getExtension
public static java.lang.String getExtension(java.lang.String fileName)
- Get extension of file, without fragment id
getContentTypeFor
public java.lang.String getContentTypeFor(java.lang.String fileName)
- Specified by:
getContentTypeFor
in interface java.net.FileNameMap
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.