Class Jetty8xEmbeddedLocalContainer
- 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.Jetty6xEmbeddedLocalContainer
-
- org.codehaus.cargo.container.jetty.Jetty7xEmbeddedLocalContainer
-
- org.codehaus.cargo.container.jetty.Jetty8xEmbeddedLocalContainer
-
- All Implemented Interfaces:
Container,EmbeddedLocalContainer,RunnableContainer,LocalContainer,Loggable
- Direct Known Subclasses:
Jetty9xEmbeddedLocalContainer
public class Jetty8xEmbeddedLocalContainer extends Jetty7xEmbeddedLocalContainer
A Jetty 8.x instance running embedded.
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDUnique container id.-
Fields inherited from class org.codehaus.cargo.container.jetty.Jetty6xEmbeddedLocalContainer
addHandlerMethod, contextHandlers, defaultRealm, handlerClass, handlers, removeHandlerMethod
-
Fields inherited from class org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedLocalContainer
server
-
-
Constructor Summary
Constructors Constructor Description Jetty8xEmbeddedLocalContainer(LocalConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddAnnotationConfiguration()Add org.eclipse.jetty.annotations.AnnotationConfiguration to allow Servlet 3.0 ServletContainerInitializers to be found.protected voiddoStart()Implementation ofRunnableContainer.start()that all containers extending this class must implement.StringgetId()protected MethodsetAttributeMethod()Locate the methodorg.eclipse.jetty.server.Server.setAttribute(String, Object)-
Methods inherited from class org.codehaus.cargo.container.jetty.Jetty7xEmbeddedLocalContainer
addJettyHandlers, configureJettyConnectors, createServerObject, getWebappContextClassname, setDefaultRealm, setSecurityRealm
-
Methods inherited from class org.codehaus.cargo.container.jetty.Jetty6xEmbeddedLocalContainer
addDeployables, addHandler, createHandler, createHandler, getName, removeHandler, startJetty
-
Methods inherited from class org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedLocalContainer
doStop, getCapability, getServer, getVersion, waitForCompletion
-
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
executePostStartTasks, forceStopInternal, getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, restart, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, verify, waitForPortShutdown, waitForStarting
-
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.internal.RunnableContainer
getOutput, getTimeout, isAppend, restart, setAppend, setOutput, setTimeout, start, stop
-
-
-
-
Field Detail
-
ID
public static final String ID
Unique container id.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Jetty8xEmbeddedLocalContainer
public Jetty8xEmbeddedLocalContainer(LocalConfiguration configuration)
-
-
Method Detail
-
doStart
protected void doStart() throws ExceptionDescription copied from class:Jetty6xEmbeddedLocalContainerImplementation ofRunnableContainer.start()that all containers extending this class must implement.- Overrides:
doStartin classJetty6xEmbeddedLocalContainer- Throws:
Exception- if any error is raised during the container start
-
addAnnotationConfiguration
protected void addAnnotationConfiguration() throws IllegalAccessException, InvocationTargetException, NoSuchMethodExceptionAdd org.eclipse.jetty.annotations.AnnotationConfiguration to allow Servlet 3.0 ServletContainerInitializers to be found.- Throws:
IllegalAccessException- thrown if the configuration could not be setInvocationTargetException- thrown if the configuration could not be setNoSuchMethodException- thrown if the configuration could not be set
-
setAttributeMethod
protected Method setAttributeMethod() throws NoSuchMethodException
Locate the methodorg.eclipse.jetty.server.Server.setAttribute(String, Object)- Returns:
- the setAttribute() method
- Throws:
NoSuchMethodException- thrown if the configuration could not be set
-
getId
public String getId()
- Specified by:
getIdin interfaceContainer- Overrides:
getIdin classJetty7xEmbeddedLocalContainer- Returns:
- the short name of the container. Note: this is not a unique id. It is simply the name in a computer-usable format.
-
-