Lizzy v1.1.1

christophedelory.content.type.webapp
Class MimeMapping

java.lang.Object
  extended by christophedelory.content.type.webapp.MimeMapping

public class MimeMapping
extends Object

Defines a mapping between a file extension and a MIME type.

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
MimeMapping()
           
 
Method Summary
 String getExtension()
          Returns the corresponding extension.
 String getMimeType()
          Returns the corresponding MIME type.
 void setExtension(String extension)
          Initializes the file extension.
 void setMimeType(String mimeType)
          Initializes 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()
Method Detail

getExtension

public String getExtension()
Returns the corresponding extension.

Returns:
an extension. May be null if not yet initialized.
See Also:
setExtension(java.lang.String)

setExtension

public void setExtension(String extension)
Initializes the file extension.

Parameters:
extension - an extension. Shall not be null.
Throws:
NullPointerException - if extension is null.
See Also:
getExtension()

getMimeType

public String getMimeType()
Returns the corresponding MIME type.

Returns:
a MIME type. May be null if not yet initialized.
See Also:
setMimeType(java.lang.String)

setMimeType

public void setMimeType(String mimeType)
Initializes the MIME type.

Parameters:
mimeType - a MIME type. Shall not be null.
Throws:
NullPointerException - if mimeType is null.
See Also:
getMimeType()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.