org.apache.cactus.integration.ant.container.tomcat
Class AbstractTomcatContainer

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.cactus.integration.ant.container.AbstractContainer
          extended byorg.apache.cactus.integration.ant.container.AbstractJavaContainer
              extended byorg.apache.cactus.integration.ant.container.tomcat.AbstractTomcatContainer
All Implemented Interfaces:
Container
Direct Known Subclasses:
AbstractCatalinaContainer, Tomcat3xContainer

public abstract class AbstractTomcatContainer
extends AbstractJavaContainer

Base support for Catalina based containers.

Version:
$Id: AbstractTomcatContainer.java,v 1.3 2003/05/13 12:39:08 cmlenz Exp $
Author:
Christopher Lenz

Constructor Summary
AbstractTomcatContainer()
           
 
Method Summary
 void addConf(org.apache.tools.ant.types.FileSet theConf)
          Adds a set of files to include in the Tomcat configuration directory.
 java.io.File getDir()
          Sets the Tomcat installation directory.
 int getPort()
          Returns the port to which the container should listen.
 java.io.File getServerXml()
          Sets the server configuration file to use for the test installation of Tomcat.
 void init()
          The default implementation does nothing.
 void setDir(java.io.File theDir)
          Sets the Tomcat installation directory.
 void setPort(int thePort)
          Sets the port to which the container should listen.
 void setServerXml(java.io.File theServerXml)
          Sets the server configuration file to use for the test installation of Tomcat.
 
Methods inherited from class org.apache.cactus.integration.ant.container.AbstractJavaContainer
setAppend, setOutput
 
Methods inherited from class org.apache.cactus.integration.ant.container.AbstractContainer
createExclude, getExcludePatterns, getToDir, isEnabled, isExcluded, setAntTaskFactory, setDeployableFile, setIf, setLog, setToDir, setUnless
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cactus.integration.ant.container.Container
getName, shutDown, startUp
 

Constructor Detail

AbstractTomcatContainer

public AbstractTomcatContainer()
Method Detail

addConf

public final void addConf(org.apache.tools.ant.types.FileSet theConf)
Adds a set of files to include in the Tomcat configuration directory.

Parameters:
theConf - The fileset to add

getDir

public final java.io.File getDir()
Sets the Tomcat installation directory.

Returns:
The directory

setDir

public final void setDir(java.io.File theDir)
Sets the Tomcat installation directory.

Parameters:
theDir - The directory to set

getServerXml

public final java.io.File getServerXml()
Sets the server configuration file to use for the test installation of Tomcat.

Returns:
The server.xml file, if set

setServerXml

public final void setServerXml(java.io.File theServerXml)
Sets the server configuration file to use for the test installation of Tomcat.

Parameters:
theServerXml - The server.xml file

setPort

public final void setPort(int thePort)
Sets the port to which the container should listen.

Parameters:
thePort - The port to set

getPort

public final int getPort()
Returns the port to which the container should listen.

Returns:
The port

init

public void init()
Description copied from class: AbstractContainer
The default implementation does nothing.

Specified by:
init in interface Container
Overrides:
init in class AbstractContainer
See Also:
Container.init()


Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.