org.codehaus.enunciate.main.webapp
Class BaseWebAppFragment

java.lang.Object
  extended by org.codehaus.enunciate.main.webapp.BaseWebAppFragment
All Implemented Interfaces:
WebAppFragment

public class BaseWebAppFragment
extends java.lang.Object
implements WebAppFragment

Author:
Ryan Heaton

Constructor Summary
BaseWebAppFragment(java.lang.String id)
           
 
Method Summary
 java.io.File getBaseDir()
          The directory whose contents will be copied to the webapp base.
 java.util.Map<java.lang.String,java.lang.String> getContextParameters()
          The web app context parameters.
 java.util.List<WebAppComponent> getFilters()
          The servlet filters.
 java.lang.String getId()
          Unique ID used to uniquely identify this webapp fragment.
 java.util.List<java.lang.String> getListeners()
          The listeners.
 java.util.Map<java.lang.String,java.lang.String> getMimeMappings()
          The mime mappings (extension-to-mime type).
 java.util.List<WebAppComponent> getServlets()
          The servlets.
 void setBaseDir(java.io.File baseDir)
          The directory whose contents will be copied to the webapp base.
 void setContextParameters(java.util.Map<java.lang.String,java.lang.String> contextParameters)
          The web app context parameters.'
 void setFilters(java.util.List<WebAppComponent> filters)
          The servlet filters.
 void setListeners(java.util.List<java.lang.String> listeners)
          The listeners.
 void setMimeMappings(java.util.Map<java.lang.String,java.lang.String> mimeMappings)
          The mime mappings (extension-to-mime type).
 void setServlets(java.util.List<WebAppComponent> servlets)
          The servlets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseWebAppFragment

public BaseWebAppFragment(java.lang.String id)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: WebAppFragment
Unique ID used to uniquely identify this webapp fragment.

Specified by:
getId in interface WebAppFragment
Returns:
Unique ID used to uniquely identify this webapp fragment.

getContextParameters

public java.util.Map<java.lang.String,java.lang.String> getContextParameters()
The web app context parameters.

Specified by:
getContextParameters in interface WebAppFragment
Returns:
The web app context parameters.

setContextParameters

public void setContextParameters(java.util.Map<java.lang.String,java.lang.String> contextParameters)
The web app context parameters.'

Parameters:
contextParameters - The web app context parameters.

getFilters

public java.util.List<WebAppComponent> getFilters()
The servlet filters.

Specified by:
getFilters in interface WebAppFragment
Returns:
The servlet filters.

setFilters

public void setFilters(java.util.List<WebAppComponent> filters)
The servlet filters.

Parameters:
filters - The servlet filters.

getListeners

public java.util.List<java.lang.String> getListeners()
The listeners.

Specified by:
getListeners in interface WebAppFragment
Returns:
The listeners.

setListeners

public void setListeners(java.util.List<java.lang.String> listeners)
The listeners.

Parameters:
listeners - The listeners.

getServlets

public java.util.List<WebAppComponent> getServlets()
The servlets.

Specified by:
getServlets in interface WebAppFragment
Returns:
The servlets.

setServlets

public void setServlets(java.util.List<WebAppComponent> servlets)
The servlets.

Parameters:
servlets - The servlets.

getMimeMappings

public java.util.Map<java.lang.String,java.lang.String> getMimeMappings()
The mime mappings (extension-to-mime type).

Specified by:
getMimeMappings in interface WebAppFragment
Returns:
The mime mappings (extension-to-mime type).

setMimeMappings

public void setMimeMappings(java.util.Map<java.lang.String,java.lang.String> mimeMappings)
The mime mappings (extension-to-mime type).

Parameters:
mimeMappings - The mime mappings (extension-to-mime type).

getBaseDir

public java.io.File getBaseDir()
The directory whose contents will be copied to the webapp base.

Specified by:
getBaseDir in interface WebAppFragment
Returns:
The directory whose contents will be copied to the webapp base.

setBaseDir

public void setBaseDir(java.io.File baseDir)
The directory whose contents will be copied to the webapp base.

Parameters:
baseDir - The directory whose contents will be copied to the webapp base.