public class Jetty7xEmbeddedLocalContainer extends AbstractJettyEmbeddedLocalContainer
server| Constructor and Description |
|---|
Jetty7xEmbeddedLocalContainer(LocalConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDeployables()
Add the cargo deployables and the Cargo Ping Check.
|
void |
addHandler(Object handler)
Deploy the handler representing the webapp to jetty.
|
protected void |
addJettyHandlers()
Add Jetty handlers.
|
protected void |
configureJettyConnectors()
Configure Jetty connectors.
|
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.
|
protected void |
setSecurityRealm()
Defines a security realm and adds defined users to it.
|
protected void |
startJetty()
Starts the Jetty server.
|
doStop, getCapability, getServer, waitForCompletiongetClassLoader, getType, setClassLoader, startInternal, stopInternalexecutePostStartTasks, forceStopInternal, getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, verify, waitForPortShutdowngetLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, getFileHandler, setConfiguration, setFileHandlergetOutput, getTimeout, isAppend, setAppend, setOutput, setTimeout, start, stoppublic Jetty7xEmbeddedLocalContainer(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()protected void configureJettyConnectors()
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException
ClassNotFoundException - thrown if the connectors could not be configuredInstantiationException - thrown if the connectors could not be configuredIllegalAccessException - thrown if the connectors could not be configuredInvocationTargetException - thrown if the connectors could not be configuredNoSuchMethodException - thrown if the connectors could not be configuredprotected void addJettyHandlers()
throws ClassNotFoundException,
InstantiationException,
IllegalAccessException,
InvocationTargetException,
NoSuchMethodException
ClassNotFoundException - thrown if the handlers could not be addedInstantiationException - thrown if the handlers could not be addedIllegalAccessException - thrown if the handlers could not be addedInvocationTargetException - thrown if the handlers could not be addedNoSuchMethodException - thrown if the handlers could not be addedprotected void addDeployables()
throws Exception
Exception - thrown if the deployables could not be addedprotected void startJetty()
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 setSecurityRealm()
throws Exception
Exception - in case of errorprotected void createServerObject()
throws Exception
createServerObject in class AbstractJettyEmbeddedLocalContainerException - in case of errorAbstractJettyEmbeddedLocalContainer.createServerObject()Copyright © 2004-2013 Codehaus. All Rights Reserved.