Class TomcatEmbeddedConfiguration
java.lang.Object
org.jboss.arquillian.container.tomcat.embedded.TomcatEmbeddedConfiguration
- All Implemented Interfaces:
org.jboss.arquillian.container.spi.client.container.ContainerConfiguration
public class TomcatEmbeddedConfiguration
extends Object
implements org.jboss.arquillian.container.spi.client.container.ContainerConfiguration
Arquillian Tomcat Container Configuration
- Version:
- $Revision: $
- Author:
- Jean Deruelle, Dan Allen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanvoidsetAppBase(String tomcatAppBase) voidsetBindAddress(String bindAddress) voidsetBindHttpPort(int bindHttpPort) Set the HTTP bind port.voidsetServerName(String serverName) voidsetTomcatHome(String jbossHome) voidsetUnpackArchive(boolean unpack) Sets the WAR to be unpacked into the java.io.tmpdir when deployed.voidsetWorkDir(String tomcatWorkDir) voidvalidate()
-
Constructor Details
-
TomcatEmbeddedConfiguration
public TomcatEmbeddedConfiguration()
-
-
Method Details
-
validate
public void validate() throws org.jboss.arquillian.container.spi.ConfigurationException- Specified by:
validatein interfaceorg.jboss.arquillian.container.spi.client.container.ContainerConfiguration- Throws:
org.jboss.arquillian.container.spi.ConfigurationException
-
getBindAddress
-
setBindAddress
-
getBindHttpPort
public int getBindHttpPort() -
setBindHttpPort
public void setBindHttpPort(int bindHttpPort) Set the HTTP bind port.- Parameters:
httpBindPort- HTTP bind port
-
setTomcatHome
-
getTomcatHome
-
setAppBase
- Parameters:
appBase- the directory where the deployed webapps are stored within the Tomcat installation
-
getAppBase
-
setWorkDir
- Parameters:
workDir- the directory where the compiled JSP files and session serialization data is stored
-
getTomcatWorkDir
-
setServerName
- Parameters:
serverName- the serverName to set
-
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
-