Class TomcatEmbeddedConfiguration

  • All Implemented Interfaces:
    org.jboss.arquillian.container.spi.client.container.ContainerConfiguration

    public class TomcatEmbeddedConfiguration
    extends java.lang.Object
    implements org.jboss.arquillian.container.spi.client.container.ContainerConfiguration
    Arquillian Tomcat Container Configuration
    Version:
    $Revision: $
    Author:
    Jean Deruelle, Dan Allen
    • Constructor Detail

      • TomcatEmbeddedConfiguration

        public TomcatEmbeddedConfiguration()
    • 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 java.lang.String getBindAddress()
      • setBindAddress

        public void setBindAddress​(java.lang.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​(java.lang.String jbossHome)
      • getTomcatHome

        public java.lang.String getTomcatHome()
      • setAppBase

        public void setAppBase​(java.lang.String tomcatAppBase)
        Parameters:
        appBase - the directory where the deployed webapps are stored within the Tomcat installation
      • getAppBase

        public java.lang.String getAppBase()
      • setWorkDir

        public void setWorkDir​(java.lang.String tomcatWorkDir)
        Parameters:
        workDir - the directory where the compiled JSP files and session serialization data is stored
      • getTomcatWorkDir

        public java.lang.String getTomcatWorkDir()
      • setServerName

        public void setServerName​(java.lang.String serverName)
        Parameters:
        serverName - the serverName to set
      • getServerName

        public java.lang.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