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
-
-
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 voidclose()URIgetAuthenticationConfigUri()Specifies the URI for the authentication configuration.CallbackHandlergetCallbackHandler()Get the security callback handler.StringgetClientBindAddress()Get the bind address used for the controller client.intgetConnectionTimeout()Get the connection timeout when trying to connect to the server.ExecutorServicegetExecutor()Get the executor service used for the controller client.StringgetHost()Get the address of the remote host.intgetPort()Get the port of the remote host.StringgetProtocol()Returns the requested protocol.Map<String,String>getSaslOptions()Get the sasl options.SSLContextgetSSLContext()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:ModelControllerClientConfigurationGet the address of the remote host.- Specified by:
getHostin interfaceModelControllerClientConfiguration- Returns:
- the host name
-
getPort
public int getPort()
Description copied from interface:ModelControllerClientConfigurationGet the port of the remote host.- Specified by:
getPortin interfaceModelControllerClientConfiguration- Returns:
- the port number
-
getProtocol
public String getProtocol()
Description copied from interface:ModelControllerClientConfigurationReturns 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:
getProtocolin interfaceModelControllerClientConfiguration
-
getCallbackHandler
public CallbackHandler getCallbackHandler()
Description copied from interface:ModelControllerClientConfigurationGet the security callback handler.- Specified by:
getCallbackHandlerin interfaceModelControllerClientConfiguration- Returns:
- the callback handler
-
getSaslOptions
public Map<String,String> getSaslOptions()
Description copied from interface:ModelControllerClientConfigurationGet the sasl options.- Specified by:
getSaslOptionsin interfaceModelControllerClientConfiguration- Returns:
- the sasl options
-
getSSLContext
public SSLContext getSSLContext()
Description copied from interface:ModelControllerClientConfigurationGet the SSLContext.- Specified by:
getSSLContextin interfaceModelControllerClientConfiguration- Returns:
- the SSLContext.
-
getSslContextFactory
public org.wildfly.security.SecurityFactory<SSLContext> getSslContextFactory()
Description copied from interface:ModelControllerClientConfigurationGet the factory to access the SSLContext.- Specified by:
getSslContextFactoryin interfaceModelControllerClientConfiguration- Returns:
- the factory to access the SSLContext.
-
getConnectionTimeout
public int getConnectionTimeout()
Description copied from interface:ModelControllerClientConfigurationGet the connection timeout when trying to connect to the server.- Specified by:
getConnectionTimeoutin interfaceModelControllerClientConfiguration- Returns:
- the connection timeout
-
getExecutor
public ExecutorService getExecutor()
Description copied from interface:ModelControllerClientConfigurationGet the executor service used for the controller client.- Specified by:
getExecutorin interfaceModelControllerClientConfiguration- Returns:
- the executor service
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getClientBindAddress
public String getClientBindAddress()
Description copied from interface:ModelControllerClientConfigurationGet the bind address used for the controller client.- Specified by:
getClientBindAddressin interfaceModelControllerClientConfiguration- Returns:
- the bind address
-
getAuthenticationConfigUri
public URI getAuthenticationConfigUri()
Description copied from interface:ModelControllerClientConfigurationSpecifies the URI for the authentication configuration.- Specified by:
getAuthenticationConfigUriin interfaceModelControllerClientConfiguration- Returns:
- the location to the authentication configuration file or
nullto use auto discovery
-
-