Arquillian Container Tomcat Embedded 6.x 1.0.0.CR3

org.jboss.arquillian.container.tomcat.embedded_6
Class TomcatConfiguration

java.lang.Object
  extended by org.jboss.arquillian.container.tomcat.embedded_6.TomcatConfiguration
All Implemented Interfaces:
org.jboss.arquillian.container.spi.client.container.ContainerConfiguration

public class TomcatConfiguration
extends Object
implements org.jboss.arquillian.container.spi.client.container.ContainerConfiguration

Arquillian Tomcat Container Configuration

Version:
$Revision: $
Author:
Jean Deruelle, Dan Allen

Constructor Summary
TomcatConfiguration()
           
 
Method Summary
 String getAppBase()
           
 String getBindAddress()
           
 int getBindHttpPort()
           
 String getServerName()
           
 String getTomcatHome()
           
 String getTomcatWorkDir()
           
 boolean isUnpackArchive()
           
 void setAppBase(String tomcatAppBase)
           
 void setBindAddress(String bindAddress)
           
 void setBindHttpPort(int bindHttpPort)
          Set the HTTP bind port.
 void setServerName(String serverName)
           
 void setTomcatHome(String jbossHome)
           
 void setUnpackArchive(boolean unpack)
          Sets the WAR to be unpacked into the java.io.tmpdir when deployed.
 void setWorkDir(String tomcatWorkDir)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatConfiguration

public TomcatConfiguration()
Method Detail

validate

public void validate()
              throws org.jboss.arquillian.container.spi.ConfigurationException
Specified by:
validate in interface org.jboss.arquillian.container.spi.client.container.ContainerConfiguration
Throws:
org.jboss.arquillian.container.spi.ConfigurationException

getBindAddress

public String getBindAddress()

setBindAddress

public void setBindAddress(String bindAddress)

getBindHttpPort

public int getBindHttpPort()

setBindHttpPort

public void setBindHttpPort(int bindHttpPort)
Set the HTTP bind port.

Parameters:
httpBindPort - HTTP bind port

setTomcatHome

public void setTomcatHome(String jbossHome)

getTomcatHome

public String getTomcatHome()

setAppBase

public void setAppBase(String tomcatAppBase)
Parameters:
appBase - the directory where the deployed webapps are stored within the Tomcat installation

getAppBase

public String getAppBase()

setWorkDir

public void setWorkDir(String tomcatWorkDir)
Parameters:
workDir - the directory where the compiled JSP files and session serialization data is stored

getTomcatWorkDir

public String getTomcatWorkDir()

setServerName

public void setServerName(String serverName)
Parameters:
serverName - the serverName to set

getServerName

public String getServerName()
Returns:
the serverName

isUnpackArchive

public boolean isUnpackArchive()
Returns:
a switch indicating whether the WAR should be unpacked

setUnpackArchive

public void setUnpackArchive(boolean unpack)
Sets the WAR to be unpacked into the java.io.tmpdir when deployed. Unpacking is required if you are using Weld to provide CDI support in a servlet environment.

Parameters:
a - switch indicating whether the WAR should be unpacked

Arquillian Container Tomcat Embedded 6.x 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.