org.codehaus.cargo.container.jetty.internal
Class AbstractJettyEmbeddedLocalContainer
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.jetty.internal.AbstractJettyEmbeddedLocalContainer
- All Implemented Interfaces:
- Container, EmbeddedLocalContainer, RunnableContainer, LocalContainer, Loggable
- Direct Known Subclasses:
- AbstractJetty4x5xEmbeddedLocalContainer, Jetty6xEmbeddedLocalContainer, Jetty7xEmbeddedLocalContainer
public abstract class AbstractJettyEmbeddedLocalContainer
- extends AbstractEmbeddedLocalContainer
Common code for all Jetty embedded container implementations.
- Version:
- $Id: AbstractJettyEmbeddedLocalContainer.java 1705 2008-09-02 13:14:55Z adriana $
Methods inherited from class org.codehaus.cargo.container.spi.AbstractLocalContainer |
getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, verify, waitForCompletion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
protected Object server
- Jetty Server object. Note that we use an Object as we're calling the Jetty API by
introspection only. This is order not to have any dependency with the Jetty jar for building.
AbstractJettyEmbeddedLocalContainer
public AbstractJettyEmbeddedLocalContainer(LocalConfiguration configuration)
-
- See Also:
AbstractInstalledLocalContainer.AbstractInstalledLocalContainer(org.codehaus.cargo.container.configuration.LocalConfiguration)
getServer
public Object getServer()
- Returns:
- the Jetty Server object
createServerObject
protected void createServerObject()
throws Exception
- Create a Jetty Server Object.
- Throws:
Exception
- in case of error
getCapability
public ContainerCapability getCapability()
-
- Returns:
- the
ContainerCapability
of the container in term of ability to deploy such
and such type of Deployable
s
(eg WAR, EAR, etc). - See Also:
Container.getCapability()
doStop
protected void doStop()
throws Exception
- Implementation of
RunnableContainer.stop()
that all
containers extending this class must implement.
- Specified by:
doStop
in class AbstractEmbeddedLocalContainer
- Throws:
Exception
- if any error is raised during the container stop- See Also:
AbstractEmbeddedLocalContainer.doStop()
Copyright © 2004-2012 Codehaus. All Rights Reserved.