public static class ModelControllerClientConfiguration.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ModelControllerClientConfiguration |
build()
Builds the configuration object based on this builder's settings.
|
ModelControllerClientConfiguration.Builder |
setAuthenticationConfigUri(URI authConfigUri)
Deprecated.
this may be removed in a future release in favor of creating an
AuthenticationContext and using a
ContextualModelControllerClient |
ModelControllerClientConfiguration.Builder |
setClientBindAddress(String clientBindAddress)
Sets the local address to which the client socket should be bound.
|
ModelControllerClientConfiguration.Builder |
setConnectionTimeout(int connectionTimeout)
Maximum time, in milliseconds, to wait for the connection to be established
|
ModelControllerClientConfiguration.Builder |
setHandler(CallbackHandler handler)
Sets the handler for callbacks to obtain authentication information.
|
ModelControllerClientConfiguration.Builder |
setHostName(String hostName)
Sets the remote host name to which the client should connect.
|
ModelControllerClientConfiguration.Builder |
setPort(int port)
Sets the remote port to which the client should connect
|
ModelControllerClientConfiguration.Builder |
setProtocol(String protocol)
Sets the protocol to use for communicating with the remote process.
|
ModelControllerClientConfiguration.Builder |
setSaslOptions(Map<String,String> saslOptions)
Sets the SASL options for the remote connection
|
ModelControllerClientConfiguration.Builder |
setSslContext(SSLContext sslContext)
Sets the SSL context for the remote connection
|
ModelControllerClientConfiguration.Builder |
setSslContextFactory(SecurityFactory<SSLContext> sslContextFactory)
Sets the SSLContext factory to obtain the SSLContext from for the remote connection
|
public ModelControllerClientConfiguration.Builder setHostName(String hostName)
hostName
- the host name. Cannot be null
public ModelControllerClientConfiguration.Builder setClientBindAddress(String clientBindAddress)
clientBindAddress
- the local address, or null
to choose one automaticallypublic ModelControllerClientConfiguration.Builder setPort(int port)
port
- the portpublic ModelControllerClientConfiguration.Builder setHandler(CallbackHandler handler)
handler
- the handler, or null
if callbacks are not supported.public ModelControllerClientConfiguration.Builder setSaslOptions(Map<String,String> saslOptions)
saslOptions
- the sasl optionspublic ModelControllerClientConfiguration.Builder setSslContext(SSLContext sslContext)
sslContext
- the SSL contextpublic ModelControllerClientConfiguration.Builder setSslContextFactory(SecurityFactory<SSLContext> sslContextFactory)
sslContextFactory
- the SSLContext factorypublic ModelControllerClientConfiguration.Builder setProtocol(String protocol)
protocol
- the protocol, or null
if a default protocol for the
specified port
should be usedpublic ModelControllerClientConfiguration.Builder setConnectionTimeout(int connectionTimeout)
connectionTimeout
- the timeout@Deprecated public ModelControllerClientConfiguration.Builder setAuthenticationConfigUri(URI authConfigUri)
AuthenticationContext
and using a
ContextualModelControllerClient
authConfigUri
- the location to the authentication configuration file or null
to use auto
discoverypublic ModelControllerClientConfiguration build()
Copyright © 2021 JBoss by Red Hat. All rights reserved.