Class CommonContainerConfiguration
java.lang.Object
org.jboss.as.arquillian.container.CommonContainerConfiguration
- All Implemented Interfaces:
org.jboss.arquillian.container.spi.client.container.ContainerConfiguration
- Direct Known Subclasses:
CommonManagedContainerConfiguration
public class CommonContainerConfiguration
extends Object
implements org.jboss.arquillian.container.spi.client.container.ContainerConfiguration
JBossAS7 server configuration
- Author:
- Thomas.Diesler@jboss.com, Andrew Lee Rubinger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe URI path for the authentication configuration.intgetHost()intintgetPort()Returns the protocol to for HTTP connections.Returns the socket binding name to use.voidsetAuthenticationConfig(String authenticationConfig) Set the URI path for the authentication configuration.voidsetConnectionTimeout(int connectionTimeout) Accepts a timeout which must be greater than 0.voidvoidsetManagementAddress(String host) voidsetManagementPort(int managementPort) voidsetManagementProtocol(String managementProtocol) voidsetPassword(String password) voidsetPort(int port) voidsetProtocol(String protocol) Sets the protocol for HTTP connections.voidsetSocketBindingName(String socketBindingName) Sets the socket binding name to use for determining the host and port for HTTP connections.voidsetUsername(String username) voidvalidate()
-
Constructor Details
-
CommonContainerConfiguration
public CommonContainerConfiguration()
-
-
Method Details
-
getManagementAddress
-
setManagementAddress
-
getManagementPort
public int getManagementPort() -
setManagementPort
public void setManagementPort(int managementPort) -
getUsername
-
setPassword
-
getPassword
-
setUsername
-
getManagementProtocol
-
getProtocol
Returns the protocol to for HTTP connections. This currently only supports http and https with a default of http.- Returns:
- the protocol
-
setProtocol
Sets the protocol for HTTP connections. Ifnullthe default of http is used.- Parameters:
protocol- the protocol to use, this must be http or https
-
getSocketBindingName
Returns the socket binding name to use.- Returns:
- the socket binding name or
nullto discover one
-
getHost
-
setHost
-
getPort
public int getPort() -
setPort
public void setPort(int port) -
setManagementProtocol
-
getConnectionTimeout
public int getConnectionTimeout() -
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout) Accepts a timeout which must be greater than 0. -
getAuthenticationConfig
The URI path for the authentication configuration.- Returns:
- the URI for the path or
nullif no path was set
-
setAuthenticationConfig
Set the URI path for the authentication configuration.- Parameters:
authenticationConfig- the URI path
-
setSocketBindingName
Sets the socket binding name to use for determining the host and port for HTTP connections. This can be used to override discovering the first binding name.The socket binding name is configured in WildFly. If this is not set, one will be determined from the Undertow subsystem.
- Parameters:
socketBindingName- the socket binding name ornullfor one to be determined
-
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
-