|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.spi.deployer.AbstractDeployer
org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
org.codehaus.cargo.container.spi.deployer.AbstractEmbeddedLocalDeployer
org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedLocalDeployer
public abstract class AbstractJettyEmbeddedLocalDeployer
Base class for all Jetty deployers.
| Constructor Summary | |
|---|---|
AbstractJettyEmbeddedLocalDeployer(EmbeddedLocalContainer container)
|
|
| Method Summary | |
|---|---|
protected static void |
addDeployedWebAppContext(String context,
Object deployedWebApp)
Add a new entry to the context path:deployable map. |
void |
deploy(Deployable deployable)
Deploy a Deployable to the running container and make it available for requests. |
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)
Undeploy a Deployable from the running container. |
abstract void |
undeployWebApp(Deployable deployable)
Implement to perform the work of the undeploy. |
| Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer |
|---|
getContainer, getFileHandler, setFileHandler |
| Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer |
|---|
deploy, deploy, redeploy, start, stop, undeploy |
| 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.util.log.Loggable |
|---|
getLogger, setLogger |
| Constructor Detail |
|---|
public AbstractJettyEmbeddedLocalDeployer(EmbeddedLocalContainer container)
AbstractEmbeddedLocalDeployer.AbstractEmbeddedLocalDeployer(org.codehaus.cargo.container.EmbeddedLocalContainer)| Method Detail |
|---|
public abstract Object deployWebApp(Deployable deployable)
deployable - the deployable
public abstract void undeployWebApp(Deployable deployable)
deployable - the webapp to undeploypublic void deploy(Deployable deployable)
Deployable to the running container and make it available for requests.
deploy in interface Deployerdeploy in class AbstractDeployerdeployable - the Deployable to deployDeployer.deploy(org.codehaus.cargo.container.deployable.Deployable)public void undeploy(Deployable deployable)
Deployable from the running container. The service becomes unavailable
for requests.
undeploy in interface Deployerundeploy in class AbstractDeployerdeployable - the Deployable to undeployDeployer.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 object
protected 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 deployable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||