Class Tomcat7xRemoteDeployer
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.deployer.AbstractDeployer
-
- org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer
-
- org.codehaus.cargo.container.tomcat.internal.AbstractTomcatRemoteDeployer
-
- org.codehaus.cargo.container.tomcat.Tomcat5xRemoteDeployer
-
- org.codehaus.cargo.container.tomcat.Tomcat6xRemoteDeployer
-
- org.codehaus.cargo.container.tomcat.Tomcat7xRemoteDeployer
-
- Direct Known Subclasses:
AbstractTomeeRemoteDeployer
,Tomcat8xRemoteDeployer
public class Tomcat7xRemoteDeployer extends Tomcat6xRemoteDeployer
A special Tomcat 7.x manager-based deployer to perform deployment to a remote container.
-
-
Field Summary
-
Fields inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractTomcatRemoteDeployer
container
-
Fields inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer
managerContext
-
-
Constructor Summary
Constructors Constructor Description Tomcat7xRemoteDeployer(RemoteContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getPath(Deployable deployable)
Gets the webapp path for the specified deployable.protected String
getVersion(Deployable deployable)
Gets the webapp version for the specified deployable.protected void
performUndeploy(Deployable deployable)
Performs undeployment of deployable.-
Methods inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractTomcatRemoteDeployer
getConfiguration, getType
-
Methods inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer
createManager, deploy, getTomcatManager, list, redeploy, redeploy, start, stop, undeploy
-
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
-
-
-
-
Constructor Detail
-
Tomcat7xRemoteDeployer
public Tomcat7xRemoteDeployer(RemoteContainer container)
-
-
Method Detail
-
performUndeploy
protected void performUndeploy(Deployable deployable) throws TomcatManagerException, IOException
Performs undeployment of deployable.Note: This is done differently by the different versions of Tomcat which is why we're using an Abstract method here.
This is a special implementation of undeploy command for Tomcat 7.x onwards, which supports deployable versions.
- Overrides:
performUndeploy
in classTomcat5xRemoteDeployer
- Parameters:
deployable
- theDeployable
to undeploy- Throws:
TomcatManagerException
- If TomcatManagerException error occured perfoming the commandIOException
- If I/O error occured getting the path of deployable
-
getPath
protected String getPath(Deployable deployable)
Gets the webapp path for the specified deployable.This is a special implementation of getPath command for Tomcat 7.x with version support.
- Overrides:
getPath
in classAbstractTomcatManagerDeployer
- Parameters:
deployable
- the deployable- Returns:
- the webapp path for the specified deployable
-
getVersion
protected String getVersion(Deployable deployable)
Gets the webapp version for the specified deployable.This is a special implementation of getVersion command for Tomcat 7.x with version support.
- Overrides:
getVersion
in classAbstractTomcatManagerDeployer
- Parameters:
deployable
- the deployable- Returns:
- the webapp version for the specified deployable
-
-