com.caucho.server.webapp
Class MimeMapping

java.lang.Object
  extended by com.caucho.server.webapp.MimeMapping

public class MimeMapping
extends java.lang.Object

Configuration for a mime-mapping.


Constructor Summary
MimeMapping()
          Creates the mime mapping.
 
Method Summary
 java.lang.String getExtension()
          Gets the extension.
 java.lang.String getMimeType()
          Gets the mime type
 void init()
          Init
 void setExtension(java.lang.String extension)
          Sets the extension
 void setMimeType(java.lang.String mimeType)
          Sets the mime type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeMapping

public MimeMapping()
Creates the mime mapping.

Method Detail

setExtension

public void setExtension(java.lang.String extension)
                  throws ServletException
Sets the extension

Throws:
ServletException

getExtension

public java.lang.String getExtension()
Gets the extension.


setMimeType

public void setMimeType(java.lang.String mimeType)
Sets the mime type


getMimeType

public java.lang.String getMimeType()
Gets the mime type


init

@PostConstruct
public void init()
          throws ServletException
Init

Throws:
ServletException