Class Jetty6xInstalledLocalDeployer
- 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.Jetty6xInstalledLocalDeployer
-
- Direct Known Subclasses:
Jetty7x8xInstalledLocalDeployer
public class Jetty6xInstalledLocalDeployer extends AbstractCopyingInstalledLocalDeployer
A deployer for webapps that deploys to a Jetty 6.x installed instance.
-
-
Constructor Summary
Constructors Constructor Description Jetty6xInstalledLocalDeployer(LocalContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
createContextXml(WAR war)
Creates the contents of the context file.protected void
doDeploy(String deployableDir, Deployable deployable)
Do the actual deployment.protected String
getContextFilename(WAR war, String extension)
Context file name.String
getContextsDir()
Specifies the directory for which thecontext.xml
for theDeployable
s should be copied to.String
getDeployableDir(Deployable deployable)
Specifies the directoryDeployable
s should be copied to.protected String
getExtraClasspathXmlFragment(WAR war)
protected String
getSharedClasspathXmlFragment()
-
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
-
Jetty6xInstalledLocalDeployer
public Jetty6xInstalledLocalDeployer(LocalContainer container)
-
-
Method Detail
-
getDeployableDir
public String getDeployableDir(Deployable deployable)
Specifies the directoryDeployable
s should be copied to.. For Jetty this is thewebapps
directory.- Specified by:
getDeployableDir
in classAbstractCopyingInstalledLocalDeployer
- Parameters:
deployable
- Deployable to deploy.- Returns:
- Deployable directory
-
getContextsDir
public String getContextsDir()
Specifies the directory for which thecontext.xml
for theDeployable
s should be copied to. For Jetty this is thewebapps
directory.- Returns:
- Deployable the directory to deploy the
context.xml
file 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:
doDeploy
in 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 asxml
orproperties
.- 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.
-
-