org.jboss.testharness.integration.tomcat
Class TomcatConnector

java.lang.Object
  extended by org.jboss.testharness.spi.helpers.AbstractContainerConnector
      extended by org.jboss.testharness.integration.tomcat.TomcatConnector
All Implemented Interfaces:
Configurable, Containers

public class TomcatConnector
extends AbstractContainerConnector
implements Containers

Author:
jeffgenender, Pete Muir

Field Summary
 
Fields inherited from class org.jboss.testharness.spi.helpers.AbstractContainerConnector
EXTRA_CONFIGURATION_DIR_PROPERTY_NAME, FORCE_RESTART_PROPERTY_NAME, HOST_PROPERTY_NAME, JAVA_OPTS, JAVA_OPTS_PROPERTY_NAME, PORT_PROPERTY_NAME, SHUTDOWN_DELAY_PROPERTY_NAME
 
Fields inherited from interface org.jboss.testharness.spi.Containers
PROPERTY_NAME
 
Constructor Summary
TomcatConnector()
           
 
Method Summary
 boolean deploy(InputStream stream, String name)
           
protected  String getBinDirectory()
           
protected  String getContextName(String name)
           
 DeploymentException getDeploymentException()
           
protected  String getLogName()
           
protected  String getManagerUrl(String command, String... parameters)
           
protected  String getServerHomePropertyName()
           
protected  void shutdownServer()
           
protected  void startServer()
           
 void undeploy(String name)
           
 
Methods inherited from class org.jboss.testharness.spi.helpers.AbstractContainerConnector
cleanup, copy, copy, dump, getDeploymentExceptionTransformer, getDeploymentExceptionTransformerPropertyName, getExtraConfigurationDir, getExtraConfigurationDirPropertyName, getForceRestart, getForceRestartPropertyName, getHost, getHostPropertyName, getHttpUrl, getJavaOpts, getPort, getPortPropertyName, getProperties, getServerBootTimeout, getServerBootTimeoutPropertyName, getServerDirectory, getShutdownDelay, getShutdownDelayPropertyName, isServerUp, launch, loadProperties, restartServer, setConfiguration, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.testharness.spi.Containers
cleanup, setup
 

Constructor Detail

TomcatConnector

public TomcatConnector()
                throws IOException
Throws:
IOException
Method Detail

getServerHomePropertyName

protected String getServerHomePropertyName()
Specified by:
getServerHomePropertyName in class AbstractContainerConnector

shutdownServer

protected void shutdownServer()
                       throws IOException
Specified by:
shutdownServer in class AbstractContainerConnector
Throws:
IOException

startServer

protected void startServer()
                    throws IOException
Specified by:
startServer in class AbstractContainerConnector
Throws:
IOException

getBinDirectory

protected String getBinDirectory()

getLogName

protected String getLogName()
Specified by:
getLogName in class AbstractContainerConnector

deploy

public boolean deploy(InputStream stream,
                      String name)
               throws IOException
Specified by:
deploy in interface Containers
Throws:
IOException

getDeploymentException

public DeploymentException getDeploymentException()
Specified by:
getDeploymentException in interface Containers

undeploy

public void undeploy(String name)
              throws IOException
Specified by:
undeploy in interface Containers
Throws:
IOException

getManagerUrl

protected String getManagerUrl(String command,
                               String... parameters)

getContextName

protected String getContextName(String name)


Copyright © 2009-2011. All Rights Reserved.