org.codehaus.cargo.container.jetty.internal
Class AbstractJetty4x5xEmbeddedLocalContainer
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
org.codehaus.cargo.container.jetty.internal.AbstractJetty4x5xEmbeddedLocalContainer
- All Implemented Interfaces:
- Container, EmbeddedLocalContainer, RunnableContainer, LocalContainer, Loggable
- Direct Known Subclasses:
- Jetty4xEmbeddedLocalContainer, Jetty5xEmbeddedLocalContainer
public abstract class AbstractJetty4x5xEmbeddedLocalContainer
- extends AbstractJettyEmbeddedLocalContainer
Common code for all Jetty 4.x and 5.x embedded container implementations.
- Version:
- $Id: AbstractJetty4x5xEmbeddedLocalContainer.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 |
AbstractJetty4x5xEmbeddedLocalContainer
public AbstractJetty4x5xEmbeddedLocalContainer(LocalConfiguration configuration)
-
- See Also:
AbstractJettyEmbeddedLocalContainer#AbstractEmbeddedLocalContainer(org.codehaus.cargo.container.configuration.LocalConfiguration)
doStart
protected void doStart()
throws Exception
- Implementation of
RunnableContainer.start()
that all
containers extending this class must implement.
- Specified by:
doStart
in class AbstractEmbeddedLocalContainer
- Throws:
Exception
- if any error is raised during the container start- See Also:
doStart()
performExtraSetupOnDeployable
protected abstract void performExtraSetupOnDeployable(Object webapp)
throws Exception
- Allow extending classes to perform extra setup on the web application object.
- Parameters:
webapp
- the Jetty web application object representing the WAR that has been added to
be deployed
- Throws:
Exception
- in case of error
setSecurityRealm
protected void setSecurityRealm()
throws Exception
- Defines a security realm and adds defined users to it. If a user has specified the standard
ServletPropertySet.USERS property, then we try and turn these into an in-memory default
realm, and then set that realm on all of the webapps.
TODO: this is not ideal. We need a way to specify N named realms to the server so that
individual webapps can find their appropriate realms by name.
- Throws:
Exception
- in case of error
Copyright © 2004-2012 Codehaus. All Rights Reserved.