public class Jetty6xEmbeddedLocalContainer extends AbstractJettyEmbeddedLocalContainer
Modifier and Type | Field and Description |
---|---|
static String |
ID
Unique container id.
|
server
Constructor and Description |
---|
Jetty6xEmbeddedLocalContainer(LocalConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(Object handler)
Deploy the handler representing the webapp to jetty.
|
Object |
createHandler(Deployable deployable)
Create a WebAppContext for the Deployable.
|
Object |
createHandler(String contextPath,
String war)
Create a WebAppContext for the webapp given as a string.
|
protected void |
createServerObject()
Create a Jetty Server Object.
|
protected void |
doStart() |
String |
getId() |
String |
getName() |
void |
removeHandler(Object handler)
Undeploy the handler representing the webapp.
|
void |
setDefaultRealm(Object webapp)
If a default realm is available, set it on the given webapp.
|
doStop, getCapability, getServer
getClassLoader, getType, setClassLoader, startInternal, stopInternal
getConfiguration, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, setOutput, setState, setTimeout, start, stop, verify, waitForCompletion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration, setConfiguration
getOutput, getTimeout, isAppend, setAppend, setOutput, setTimeout, start, stop
public static final String ID
public Jetty6xEmbeddedLocalContainer(LocalConfiguration configuration)
public String getId()
Container.getId()
public String getName()
Container.getName()
public void setDefaultRealm(Object webapp) throws Exception
webapp
- the webapp to set the realm onException
- on invokation errorprotected void doStart() throws Exception
doStart
in class AbstractEmbeddedLocalContainer
Exception
AbstractEmbeddedLocalContainer.doStart()
public Object createHandler(Deployable deployable) throws Exception
deployable
- the cargo webapp to deployException
- on invokation exceptionpublic Object createHandler(String contextPath, String war) throws Exception
contextPath
- the context path for the webappwar
- the webappException
- on invokation exceptionpublic void addHandler(Object handler) throws Exception
handler
- the handler representing the webappException
- on invocation exceptionpublic void removeHandler(Object handler) throws Exception
handler
- the handler representing the webappException
- on invocation exceptionprotected void createServerObject() throws Exception
createServerObject
in class AbstractJettyEmbeddedLocalContainer
Exception
- in case of errorAbstractJettyEmbeddedLocalContainer.createServerObject()
Copyright © 2004-2013 Codehaus. All Rights Reserved.