Class Tomcat5xEmbeddedLocalContainer
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.AbstractContainer
-
- org.codehaus.cargo.container.spi.AbstractLocalContainer
-
- org.codehaus.cargo.container.spi.AbstractEmbeddedLocalContainer
-
- org.codehaus.cargo.container.tomcat.internal.AbstractCatalinaEmbeddedLocalContainer
-
- org.codehaus.cargo.container.tomcat.Tomcat5xEmbeddedLocalContainer
-
- All Implemented Interfaces:
Container
,EmbeddedLocalContainer
,RunnableContainer
,LocalContainer
,Loggable
- Direct Known Subclasses:
Tomcat6xEmbeddedLocalContainer
public class Tomcat5xEmbeddedLocalContainer extends AbstractCatalinaEmbeddedLocalContainer
Embedded Tomcat 5.x container.
-
-
Field Summary
-
Fields inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractCatalinaEmbeddedLocalContainer
connector, controller, host
-
-
Constructor Summary
Constructors Constructor Description Tomcat5xEmbeddedLocalContainer(LocalConfiguration configuration)
Creates a Tomcat 5.xEmbeddedLocalContainer
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
String
getName()
protected void
prepareController(TomcatEmbedded wrapper, File home, int port)
Prepare the Tomcat controller.-
Methods inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractCatalinaEmbeddedLocalContainer
doStart, doStop, getCapability, getController, getHost, scheduleDeployment, waitForCompletion
-
Methods inherited from class org.codehaus.cargo.container.spi.AbstractEmbeddedLocalContainer
getClassLoader, getType, setClassLoader, startInternal, stopInternal
-
Methods inherited from class org.codehaus.cargo.container.spi.AbstractLocalContainer
executePostStartTasks, forceStopInternal, getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, restart, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, verify, waitForPortShutdown, waitForStarting
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.codehaus.cargo.container.LocalContainer
getConfiguration, getFileHandler, setConfiguration, setFileHandler
-
Methods inherited from interface org.codehaus.cargo.container.internal.RunnableContainer
getOutput, getTimeout, isAppend, restart, setAppend, setOutput, setTimeout, start, stop
-
-
-
-
Constructor Detail
-
Tomcat5xEmbeddedLocalContainer
public Tomcat5xEmbeddedLocalContainer(LocalConfiguration configuration)
Creates a Tomcat 5.xEmbeddedLocalContainer
.- Parameters:
configuration
- the configuration of the newly created container.
-
-
Method Detail
-
getId
public String getId()
- Returns:
- the short name of the container. Note: this is not a unique id. It is simply the name in a computer-usable format.
-
getName
public String getName()
- Returns:
- the human readable name of the Container (ex: "Resin 3.x", "JBoss 3.0.8", etc).
-
prepareController
protected void prepareController(TomcatEmbedded wrapper, File home, int port)
Prepare the Tomcat controller. After this method returns, thehost
andconnector
protected attributes must be set.- Specified by:
prepareController
in classAbstractCatalinaEmbeddedLocalContainer
- Parameters:
wrapper
- Tomcat wrapper.home
-CATALINA_BASE
directory.port
- HTTP port.
-
-