org.codehaus.cargo.container.jetty
Class Jetty7xEmbeddedLocalDeployer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.deployer.AbstractDeployer
          extended by org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
              extended by org.codehaus.cargo.container.spi.deployer.AbstractEmbeddedLocalDeployer
                  extended by org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedLocalDeployer
                      extended by org.codehaus.cargo.container.jetty.Jetty7xEmbeddedLocalDeployer
All Implemented Interfaces:
Deployer, Loggable

public class Jetty7xEmbeddedLocalDeployer
extends AbstractJettyEmbeddedLocalDeployer

A deployer for webapps that deploys to a Jetty 7.x instance running embedded.

Version:
$Id: Jetty7xEmbeddedLocalDeployer.java 1735 2008-09-25 08:58:42Z alitokmen $

Constructor Summary
Jetty7xEmbeddedLocalDeployer(EmbeddedLocalContainer container)
          
 
Method Summary
 Object deployWebApp(Deployable deployable)
          Implement to perform the work of the deploy.
 void redeploy(Deployable deployable)
          Redeploy a Deployable already deployed to the running container.
 void start(Deployable deployable)
          Starts a Deployable that is already deployed in the running container but that is not servicing requests.
 void stop(Deployable deployable)
          Stop a Deployable that is already deployed in the running container in order to prevent it from servicing requests.
 void undeployWebApp(Deployable deployable)
          Implement to perform the work of the undeploy.
 
Methods inherited from class org.codehaus.cargo.container.jetty.internal.AbstractJettyEmbeddedLocalDeployer
addDeployedWebAppContext, deploy, getContext, getCopyWebApp, getDeployedWebAppContext, getExtractWar, getParentLoaderPriority, getType, getVirtualHosts, removeDeployedWebAppContext, setCopyWebApp, setExtractWar, setParentLoaderPriority, setVirtualHosts, 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, 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

Jetty7xEmbeddedLocalDeployer

public Jetty7xEmbeddedLocalDeployer(EmbeddedLocalContainer container)

See Also:
AbstractJettyEmbeddedLocalDeployer.AbstractJettyEmbeddedLocalDeployer(EmbeddedLocalContainer)
Method Detail

deployWebApp

public Object deployWebApp(Deployable deployable)
Implement to perform the work of the deploy.

Specified by:
deployWebApp in class AbstractJettyEmbeddedLocalDeployer
Parameters:
deployable - the deployable
Returns:
the webapp object that was deployed
See Also:
AbstractJettyEmbeddedLocalDeployer.deployWebApp(org.codehaus.cargo.container.deployable.Deployable)

undeployWebApp

public void undeployWebApp(Deployable deployable)
Implement to perform the work of the undeploy.

Specified by:
undeployWebApp in class AbstractJettyEmbeddedLocalDeployer
Parameters:
deployable - the webapp to undeploy
See Also:
AbstractJettyEmbeddedLocalDeployer.undeployWebApp(org.codehaus.cargo.container.deployable.Deployable)

redeploy

public void redeploy(Deployable deployable)

Redeploy a Deployable already deployed to the running container. The service becomes available for requests.

Note that this method will be unsupported by the Deployers based on the AbstractCopyingInstalledLocalDeployer.

Specified by:
redeploy in interface Deployer
Overrides:
redeploy in class AbstractDeployer
Parameters:
deployable - the Deployable to redeploy
See Also:
Deployer.redeploy(org.codehaus.cargo.container.deployable.Deployable)

start

public void start(Deployable deployable)
Starts a Deployable that is already deployed in the running container but that is not servicing requests.

Specified by:
start in interface Deployer
Overrides:
start in class AbstractDeployer
Parameters:
deployable - the Deployable to start
See Also:
Deployer.start(org.codehaus.cargo.container.deployable.Deployable)

stop

public void stop(Deployable deployable)
Stop a Deployable that is already deployed in the running container in order to prevent it from servicing requests.

Specified by:
stop in interface Deployer
Overrides:
stop in class AbstractDeployer
Parameters:
deployable - the Deployable to stop
See Also:
Deployer.stop(org.codehaus.cargo.container.deployable.Deployable)


Copyright © 2004-2012 Codehaus. All Rights Reserved.