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- Author:
- Jean Deruelle, Dan Allen
-
-
Constructor Summary
Constructors Constructor Description TomcatEmbeddedConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAppBase()StringgetBindAddress()intgetBindHttpPort()StringgetServerName()StringgetTomcatHome()StringgetTomcatWorkDir()booleanisUnpackArchive()voidsetAppBase(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()
-
-
-
Method Detail
-
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
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
-
-