Class JettyWebAppContextJavax
- java.lang.Object
-
- org.codehaus.cargo.deployer.jetty.JettyWebAppContextJavax
-
- All Implemented Interfaces:
JettyDeployer.Context
public class JettyWebAppContextJavax extends Object implements JettyDeployer.Context
Provides Jetty 12.1 Java EE 8 WebAppContext operations.
-
-
Constructor Summary
Constructors Constructor Description JettyWebAppContextJavax(org.eclipse.jetty.ee8.webapp.WebAppContext context)Creates a context adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeploy(String contextPath, File warFile)Deploys a WAR at the specified context path.ObjectgetContextHandler(String contextPath)Finds a deployed context by its context path.Stringundeploy(Object contextHandler)Stops and removes a deployed context.
-
-
-
Method Detail
-
getContextHandler
public Object getContextHandler(String contextPath)
Finds a deployed context by its context path.- Specified by:
getContextHandlerin interfaceJettyDeployer.Context- Parameters:
contextPath- context path- Returns:
- context handler, or
nullif none exists
-
deploy
public void deploy(String contextPath, File warFile) throws Exception
Deploys a WAR at the specified context path.- Specified by:
deployin interfaceJettyDeployer.Context- Parameters:
contextPath- context pathwarFile- WAR file- Throws:
Exception- if deployment fails
-
-