Author: costin
Date: Fri Aug 29 21:21:10 2008
New Revision: 690455
URL: http://svn.apache.org/viewvc?rev=690455&view=rev
Log:
Getter with the same name as in servlet api, to make it easier to convert
servlets to adapters
Modified:
tomcat/sandbox/tomcat-lite/tomcat-coyote/org/apache/tomcat/util/http/MimeMap.java
Modified:
tomcat/sandbox/tomcat-lite/tomcat-coyote/org/apache/tomcat/util/http/MimeMap.java
URL:
http://svn.apache.org/viewvc/tomcat/sandbox/tomcat-lite/tomcat-coyote/org/apache/tomcat/util/http/MimeMap.java?rev=690455&r1=690454&r2=690455&view=diff
==============================================================================
---
tomcat/sandbox/tomcat-lite/tomcat-coyote/org/apache/tomcat/util/http/MimeMap.java
(original)
+++
tomcat/sandbox/tomcat-lite/tomcat-coyote/org/apache/tomcat/util/http/MimeMap.java
Fri Aug 29 21:21:10 2008
@@ -36,6 +36,7 @@
new Hashtable<String,String>(101);
static {
defaultMap.put("txt", "text/plain");
+ defaultMap.put("css", "text/css");
defaultMap.put("html","text/html");
defaultMap.put("htm", "text/html");
defaultMap.put("gif", "image/gif");
@@ -144,6 +145,10 @@
return map.keys();
}
+ public String getMimeType(String ext) {
+ return getContentTypeFor(ext);
+ }
+
public String getContentType(String extn) {
String type = (String)map.get(extn.toLowerCase());
if( type == null ) type=(String)defaultMap.get( extn );
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]