Class Jetty6x7x8xInstalledLocalDeployer
- java.lang.Object
-
- org.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.AbstractInstalledLocalDeployer
-
- org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
-
- org.codehaus.cargo.container.jetty.Jetty6x7x8xInstalledLocalDeployer
-
- Direct Known Subclasses:
Jetty7x8xInstalledLocalDeployer
public class Jetty6x7x8xInstalledLocalDeployer extends AbstractCopyingInstalledLocalDeployer
A deployer for webapps that deploys to a Jetty 6.x, 7.x or 8.x installed instance.
-
-
Constructor Summary
Constructors Constructor Description Jetty6x7x8xInstalledLocalDeployer(LocalContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcreateContextXml(WAR war)Creates the contents of the context file.protected voiddoDeploy(String deployableDir, Deployable deployable)Do the actual deployment.protected StringgetContextFilename(WAR war, String extension)Context file name.StringgetContextsDir()Specifies the directory for which thecontext.xmlfor theDeployables should be copied to.StringgetDeployableDir(Deployable deployable)Specifies the directoryDeployables should be copied to.protected StringgetExtraClasspathXmlFragment(WAR war)protected StringgetSharedClasspathXmlFragment()-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
canBeDeployed, deploy, getDeployableName, setShouldDeployExpanded, shouldDeployExpanded
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
getType
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
getContainer, getFileHandler
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, redeploy, redeploy, start, start, stop, stop, undeploy, undeploy
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
Jetty6x7x8xInstalledLocalDeployer
public Jetty6x7x8xInstalledLocalDeployer(LocalContainer container)
-
-
Method Detail
-
getDeployableDir
public String getDeployableDir(Deployable deployable)
Specifies the directoryDeployables should be copied to.. For Jetty this is thewebappsdirectory.- Specified by:
getDeployableDirin classAbstractCopyingInstalledLocalDeployer- Parameters:
deployable- Deployable to deploy.- Returns:
- Deployable directory
-
getContextsDir
public String getContextsDir()
Specifies the directory for which thecontext.xmlfor theDeployables should be copied to. For Jetty this is thecontextsdirectory.- Returns:
- Deployable the directory to deploy the
context.xmlfile to
-
doDeploy
protected void doDeploy(String deployableDir, Deployable deployable)
Do the actual deployment. This can be overriden.. We override the base implementation because Jetty requires a context XML file deployed in its context dir to perform hot deployment. Thus we need to create that context file.- Overrides:
doDeployin classAbstractCopyingInstalledLocalDeployer- Parameters:
deployableDir- Directory in which to deploy.deployable- Deployable to deploy.
-
getContextFilename
protected String getContextFilename(WAR war, String extension)
Context file name.- Parameters:
war- WAR deployable.extension- File extension, such asxmlorproperties.- Returns:
- Context file name.
-
createContextXml
protected String createContextXml(WAR war)
Creates the contents of the context file.- Parameters:
war- The WAR being deployed, must not benull.- Returns:
- The contents of the context file, never
null.
-
getSharedClasspathXmlFragment
protected String getSharedClasspathXmlFragment()
- Returns:
- The XML fragment for shared classpath.
-
-