public class Jetty6xEmbeddedLocalContainer extends AbstractJettyEmbeddedLocalContainer
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()
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.
|
doStop, getCapability, getServer, waitForCompletiongetClassLoader, getType, setClassLoader, startInternal, stopInternalexecutePostStartTasks, forceStopInternal, getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, restart, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, verifygetLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, getFileHandler, setConfiguration, setFileHandlergetOutput, getTimeout, isAppend, restart, setAppend, setOutput, setTimeout, start, stoppublic 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
RunnableContainer.start() that all
containers extending this class must implement.doStart in class AbstractEmbeddedLocalContainerException - if any error is raised during the container startAbstractEmbeddedLocalContainer.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 AbstractJettyEmbeddedLocalContainerException - in case of errorAbstractJettyEmbeddedLocalContainer.createServerObject()Copyright © 2004-2013 Codehaus. All Rights Reserved.