Class ClientConfigurationImpl
- java.lang.Object
-
- org.jboss.as.controller.client.impl.ClientConfigurationImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ModelControllerClientConfiguration
public class ClientConfigurationImpl extends Object implements ModelControllerClientConfiguration
- Author:
- Emanuel Muckenhuber
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.client.ModelControllerClientConfiguration
ModelControllerClientConfiguration.Builder, ModelControllerClientConfiguration.Factory
-
-
Constructor Summary
Constructors Constructor Description ClientConfigurationImpl(String address, int port, CallbackHandler handler, Map<String,String> saslOptions, org.wildfly.security.SecurityFactory<SSLContext> sslContextFactory, ExecutorService executorService, boolean shutdownExecutor, int connectionTimeout, String protocol, String clientBindAddress, URI authConfigUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
URI
getAuthenticationConfigUri()
Specifies the URI for the authentication configuration.CallbackHandler
getCallbackHandler()
Get the security callback handler.String
getClientBindAddress()
Get the bind address used for the controller client.int
getConnectionTimeout()
Get the connection timeout when trying to connect to the server.ExecutorService
getExecutor()
Get the executor service used for the controller client.String
getHost()
Get the address of the remote host.int
getPort()
Get the port of the remote host.String
getProtocol()
Returns the requested protocol.Map<String,String>
getSaslOptions()
Get the sasl options.SSLContext
getSSLContext()
Get the SSLContext.org.wildfly.security.SecurityFactory<SSLContext>
getSslContextFactory()
Get the factory to access the SSLContext.
-
-
-
Constructor Detail
-
ClientConfigurationImpl
public ClientConfigurationImpl(String address, int port, CallbackHandler handler, Map<String,String> saslOptions, org.wildfly.security.SecurityFactory<SSLContext> sslContextFactory, ExecutorService executorService, boolean shutdownExecutor, int connectionTimeout, String protocol, String clientBindAddress, URI authConfigUri)
-
-
Method Detail
-
getHost
public String getHost()
Description copied from interface:ModelControllerClientConfiguration
Get the address of the remote host.- Specified by:
getHost
in interfaceModelControllerClientConfiguration
- Returns:
- the host name
-
getPort
public int getPort()
Description copied from interface:ModelControllerClientConfiguration
Get the port of the remote host.- Specified by:
getPort
in interfaceModelControllerClientConfiguration
- Returns:
- the port number
-
getProtocol
public String getProtocol()
Description copied from interface:ModelControllerClientConfiguration
Returns the requested protocol. If this is null the remoting protocol will be used. If this is http or https then HTTP upgrade will be used.- Specified by:
getProtocol
in interfaceModelControllerClientConfiguration
-
getCallbackHandler
public CallbackHandler getCallbackHandler()
Description copied from interface:ModelControllerClientConfiguration
Get the security callback handler.- Specified by:
getCallbackHandler
in interfaceModelControllerClientConfiguration
- Returns:
- the callback handler
-
getSaslOptions
public Map<String,String> getSaslOptions()
Description copied from interface:ModelControllerClientConfiguration
Get the sasl options.- Specified by:
getSaslOptions
in interfaceModelControllerClientConfiguration
- Returns:
- the sasl options
-
getSSLContext
public SSLContext getSSLContext()
Description copied from interface:ModelControllerClientConfiguration
Get the SSLContext.- Specified by:
getSSLContext
in interfaceModelControllerClientConfiguration
- Returns:
- the SSLContext.
-
getSslContextFactory
public org.wildfly.security.SecurityFactory<SSLContext> getSslContextFactory()
Description copied from interface:ModelControllerClientConfiguration
Get the factory to access the SSLContext.- Specified by:
getSslContextFactory
in interfaceModelControllerClientConfiguration
- Returns:
- the factory to access the SSLContext.
-
getConnectionTimeout
public int getConnectionTimeout()
Description copied from interface:ModelControllerClientConfiguration
Get the connection timeout when trying to connect to the server.- Specified by:
getConnectionTimeout
in interfaceModelControllerClientConfiguration
- Returns:
- the connection timeout
-
getExecutor
public ExecutorService getExecutor()
Description copied from interface:ModelControllerClientConfiguration
Get the executor service used for the controller client.- Specified by:
getExecutor
in interfaceModelControllerClientConfiguration
- Returns:
- the executor service
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getClientBindAddress
public String getClientBindAddress()
Description copied from interface:ModelControllerClientConfiguration
Get the bind address used for the controller client.- Specified by:
getClientBindAddress
in interfaceModelControllerClientConfiguration
- Returns:
- the bind address
-
getAuthenticationConfigUri
public URI getAuthenticationConfigUri()
Description copied from interface:ModelControllerClientConfiguration
Specifies the URI for the authentication configuration.- Specified by:
getAuthenticationConfigUri
in interfaceModelControllerClientConfiguration
- Returns:
- the location to the authentication configuration file or
null
to use auto discovery
-
-