Class Jetty12xEmbeddedLocalContainer
- 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
-
- org.codehaus.cargo.container.jetty.Jetty9xEmbeddedLocalContainer
-
- org.codehaus.cargo.container.jetty.Jetty10xEmbeddedLocalContainer
-
- org.codehaus.cargo.container.jetty.Jetty11xEmbeddedLocalContainer
-
- org.codehaus.cargo.container.jetty.Jetty12xEmbeddedLocalContainer
-
- All Implemented Interfaces:
Container
,EmbeddedLocalContainer
,RunnableContainer
,LocalContainer
,Loggable
public class Jetty12xEmbeddedLocalContainer extends Jetty11xEmbeddedLocalContainer
A Jetty 12.x instance running embedded.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
Unique 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 Jetty12xEmbeddedLocalContainer(LocalConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAnnotationConfiguration()
Add org.eclipse.jetty.annotations.AnnotationConfiguration to allow Servlet 3.0 ServletContainerInitializers to be found.protected void
addJettyHandlers()
Add Jetty handlers.String
getId()
protected String
getWebappContextClassname()
-
Methods inherited from class org.codehaus.cargo.container.jetty.Jetty10xEmbeddedLocalContainer
createServerObject
-
Methods inherited from class org.codehaus.cargo.container.jetty.Jetty9xEmbeddedLocalContainer
configureJettyConnectors
-
Methods inherited from class org.codehaus.cargo.container.jetty.Jetty8xEmbeddedLocalContainer
doStart, setAttributeMethod
-
Methods inherited from class org.codehaus.cargo.container.jetty.Jetty7xEmbeddedLocalContainer
createHandler, createHandler, setDefaultRealm, setSecurityRealm
-
Methods inherited from class org.codehaus.cargo.container.jetty.Jetty6xEmbeddedLocalContainer
addDeployables, addHandler, 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
-
Jetty12xEmbeddedLocalContainer
public Jetty12xEmbeddedLocalContainer(LocalConfiguration configuration)
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceContainer
- Overrides:
getId
in classJetty11xEmbeddedLocalContainer
- Returns:
- the short name of the container. Note: this is not a unique id. It is simply the name in a computer-usable format.
-
addJettyHandlers
protected void addJettyHandlers() throws ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
Add Jetty handlers.- Overrides:
addJettyHandlers
in classJetty7xEmbeddedLocalContainer
- Throws:
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 added
-
addAnnotationConfiguration
protected void addAnnotationConfiguration() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
Add org.eclipse.jetty.annotations.AnnotationConfiguration to allow Servlet 3.0 ServletContainerInitializers to be found.- Overrides:
addAnnotationConfiguration
in classJetty8xEmbeddedLocalContainer
- 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
-
getWebappContextClassname
protected String getWebappContextClassname()
- Overrides:
getWebappContextClassname
in classJetty7xEmbeddedLocalContainer
- Returns:
- The Jetty Webapp context class name.
-
-