Lizzy v1.1.1

christophedelory.content.type.webapp
Class WebApp

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

public class WebApp
extends Object

A container of mappings between MIME types and extensions.

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
WebApp()
          Builds a new and empty mappings container.
 
Method Summary
 void addMimeMapping(MimeMapping mapping)
          Adds a MIME type mapping.
 List<MimeMapping> getMimeMappings()
          Returns the list of mappings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebApp

public WebApp()
Builds a new and empty mappings container.

Method Detail

getMimeMappings

public List<MimeMapping> getMimeMappings()
Returns the list of mappings.

Returns:
a list of mappings. May be empty but not null.
See Also:
addMimeMapping(christophedelory.content.type.webapp.MimeMapping)

addMimeMapping

public void addMimeMapping(MimeMapping mapping)
Adds a MIME type mapping.

Parameters:
mapping - a mapping. Shall not be null.
Throws:
NullPointerException - if mapping is null.
See Also:
getMimeMappings()

© 2008-2009 Christophe Delory

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