public abstract class AbstractJettyEmbeddedLocalDeployer extends AbstractEmbeddedLocalDeployer
| Constructor and Description |
|---|
AbstractJettyEmbeddedLocalDeployer(EmbeddedLocalContainer container) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addDeployedWebAppContext(String context,
Object deployedWebApp)
Add a new entry to the context path:deployable map.
|
void |
deploy(Deployable deployable) |
abstract Object |
deployWebApp(Deployable deployable)
Implement to perform the work of the deploy.
|
static String |
getContext(Deployable deployable)
Get the context path for the webapp.
|
Boolean |
getCopyWebApp() |
protected static Object |
getDeployedWebAppContext(Deployable deployable)
Get the deployable that matches the context path.
|
Boolean |
getExtractWar() |
Boolean |
getParentLoaderPriority() |
DeployerType |
getType() |
String[] |
getVirtualHosts() |
protected static void |
removeDeployedWebAppContext(String context)
Take a map entry away using the key.
|
void |
setCopyWebApp(Boolean copy)
copy webapp.
|
void |
setExtractWar(Boolean extract)
If true, all wars deployed by this deployer will be extracted before being deployed.
|
void |
setParentLoaderPriority(Boolean java2compliant)
This is called java2classloadercompliance setting in jetty5 and the parentloaderpriority
in jetty6.
|
void |
setVirtualHosts(String[] hosts)
Set a list of virtual hosts corresponding to the webapps deployed via this deployer.
|
void |
undeploy(Deployable deployable) |
abstract void |
undeployWebApp(Deployable deployable)
Implement to perform the work of the undeploy.
|
getContainer, getFileHandler, setFileHandlerdeploy, deploy, redeploy, start, stoppublic AbstractJettyEmbeddedLocalDeployer(EmbeddedLocalContainer container)
public abstract Object deployWebApp(Deployable deployable)
deployable - the deployablepublic abstract void undeployWebApp(Deployable deployable)
deployable - the webapp to undeploypublic void deploy(Deployable deployable)
deploy in interface Deployerdeploy in class AbstractDeployerDeployer.deploy(org.codehaus.cargo.container.deployable.Deployable)public void undeploy(Deployable deployable)
undeploy in interface Deployerundeploy in class AbstractDeployerDeployer.undeploy(org.codehaus.cargo.container.deployable.Deployable)public DeployerType getType()
getType in interface DeployergetType in class AbstractEmbeddedLocalDeployerDeployer.getType()public void setVirtualHosts(String[] hosts)
hosts - list of virtual host namespublic String[] getVirtualHosts()
public void setExtractWar(Boolean extract)
extract - true=extract; false=don't extract, null=do container defaultpublic Boolean getExtractWar()
public void setCopyWebApp(Boolean copy)
copy - if true, webapps are copied to tmp dirpublic Boolean getCopyWebApp()
public void setParentLoaderPriority(Boolean java2compliant)
java2compliant - true=inverted loading, false=servlet spec, null=do the container
defaultpublic Boolean getParentLoaderPriority()
protected static Object getDeployedWebAppContext(Deployable deployable)
deployable - the deployable objectprotected static void addDeployedWebAppContext(String context, Object deployedWebApp)
context - the contextpath for the webappdeployedWebApp - the jetty webapp objectprotected static void removeDeployedWebAppContext(String context)
context - the context pathpublic static String getContext(Deployable deployable)
deployable - the deployableCopyright © 2004-2013 Codehaus. All Rights Reserved.