|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.Jetty6xEmbeddedLocalContainer
public class Jetty6xEmbeddedLocalContainer
A Jetty 6.x instance running embedded.
Field Summary | |
---|---|
static String |
ID
Unique container id. |
Fields inherited from class org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedLocalContainer |
---|
server |
Constructor Summary | |
---|---|
Jetty6xEmbeddedLocalContainer(LocalConfiguration configuration)
|
Method Summary | |
---|---|
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()
Implementation of RunnableContainer.start() that all
containers extending this class must implement. |
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. |
Methods inherited from class org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedLocalContainer |
---|
doStop, getCapability, getServer |
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 |
---|
getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, verify, waitForCompletion |
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.Container |
---|
getState |
Methods inherited from interface org.codehaus.cargo.util.log.Loggable |
---|
getLogger, setLogger |
Methods inherited from interface org.codehaus.cargo.container.internal.RunnableContainer |
---|
getOutput, getTimeout, isAppend, setAppend, setOutput, setTimeout, start, stop |
Field Detail |
---|
public static final String ID
Constructor Detail |
---|
public Jetty6xEmbeddedLocalContainer(LocalConfiguration configuration)
AbstractJettyEmbeddedLocalContainer.AbstractJettyEmbeddedLocalContainer(org.codehaus.cargo.container.configuration.LocalConfiguration)
Method Detail |
---|
public String getId()
Container.getId()
public String getName()
Container.getName()
public void setDefaultRealm(Object webapp) throws Exception
webapp
- the webapp to set the realm on
Exception
- on invokation errorprotected void doStart() throws Exception
RunnableContainer.start()
that all
containers extending this class must implement.
doStart
in class AbstractEmbeddedLocalContainer
Exception
- if any error is raised during the container startAbstractEmbeddedLocalContainer.doStart()
public Object createHandler(Deployable deployable) throws Exception
deployable
- the cargo webapp to deploy
Exception
- on invokation exceptionpublic Object createHandler(String contextPath, String war) throws Exception
contextPath
- the context path for the webappwar
- the webapp
Exception
- on invokation exceptionpublic void addHandler(Object handler) throws Exception
handler
- the handler representing the webapp
Exception
- on invocation exceptionpublic void removeHandler(Object handler) throws Exception
handler
- the handler representing the webapp
Exception
- on invocation exceptionprotected void createServerObject() throws Exception
createServerObject
in class AbstractJettyEmbeddedLocalContainer
Exception
- in case of errorAbstractJettyEmbeddedLocalContainer.createServerObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |