org.codehaus.cargo.container.tomcat
Class Tomcat4xRemoteDeployer

java.lang.Object
  extended byorg.codehaus.cargo.util.log.LoggedObject
      extended byorg.codehaus.cargo.container.spi.deployer.AbstractDeployer
          extended byorg.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
              extended byorg.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer
                  extended byorg.codehaus.cargo.container.tomcat.internal.AbstractTomcatRemoteDeployer
                      extended byorg.codehaus.cargo.container.tomcat.Tomcat4xRemoteDeployer
All Implemented Interfaces:
org.codehaus.cargo.container.deployer.Deployer, org.codehaus.cargo.util.log.Loggable

public class Tomcat4xRemoteDeployer
extends AbstractTomcatRemoteDeployer

A special Tomcat4x manager-based deployer to perform deployment to a remote container.

Version:
$Id: Tomcat4xRemoteDeployer.java 1157 2006-07-27 19:57:13Z vmassol $

Field Summary
 
Fields inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractTomcatRemoteDeployer
container
 
Constructor Summary
Tomcat4xRemoteDeployer(org.codehaus.cargo.container.RemoteContainer container)
          {@inheritDoc}
 
Method Summary
protected  void performUndeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
          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.

 
Methods inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractTomcatRemoteDeployer
getConfiguration
 
Methods inherited from class org.codehaus.cargo.container.tomcat.internal.AbstractTomcatManagerDeployer
createManager, deploy, getPath, getTomcatManager, list, redeploy, start, stop, undeploy
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
getType
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy
 
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

Tomcat4xRemoteDeployer

public Tomcat4xRemoteDeployer(org.codehaus.cargo.container.RemoteContainer container)
{@inheritDoc}

See Also:
AbstractTomcatRemoteDeployer.AbstractTomcatRemoteDeployer(org.codehaus.cargo.container.RemoteContainer)
Method Detail

performUndeploy

protected void performUndeploy(org.codehaus.cargo.container.deployable.Deployable deployable)
                        throws TomcatManagerException,
                               java.io.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 4.x due the http://issues.apache.org/bugzilla/show_bug.cgi?id=28851 issue. The issue has been fixed in Tomcat 5.x and performUndeploy implementation for Tomcat5x differs from Tomcat4.x.

Specified by:
performUndeploy in class AbstractTomcatManagerDeployer
Parameters:
deployable - the Deployable to undeploy
Throws:
TomcatManagerException - If TomcatManagerException error occured perfoming the command
java.io.IOException - If I/O error occured getting the path of deployable
See Also:
AbstractTomcatManagerDeployer.performUndeploy(org.codehaus.cargo.container.deployable.Deployable)


Copyright © 2004-2008 Codehaus. All Rights Reserved.