Class ModelControllerClientConfiguration.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setHostName

        public ModelControllerClientConfiguration.Builder setHostName​(String hostName)
        Sets the remote host name to which the client should connect.
        Parameters:
        hostName - the host name. Cannot be null
        Returns:
        a builder to allow continued configuration
      • setClientBindAddress

        public ModelControllerClientConfiguration.Builder setClientBindAddress​(String clientBindAddress)
        Sets the local address to which the client socket should be bound.
        Parameters:
        clientBindAddress - the local address, or null to choose one automatically
        Returns:
        a builder to allow continued configuration
      • setPort

        public ModelControllerClientConfiguration.Builder setPort​(int port)
        Sets the remote port to which the client should connect
        Parameters:
        port - the port
        Returns:
        a builder to allow continued configuration
      • setHandler

        public ModelControllerClientConfiguration.Builder setHandler​(CallbackHandler handler)
        Sets the handler for callbacks to obtain authentication information.
        Parameters:
        handler - the handler, or null if callbacks are not supported.
        Returns:
        a builder to allow continued configuration
      • setSslContextFactory

        public ModelControllerClientConfiguration.Builder setSslContextFactory​(org.wildfly.security.SecurityFactory<SSLContext> sslContextFactory)
        Sets the SSLContext factory to obtain the SSLContext from for the remote connection
        Parameters:
        sslContextFactory - the SSLContext factory
        Returns:
        a builder to allow continued configuration
      • setProtocol

        public ModelControllerClientConfiguration.Builder setProtocol​(String protocol)
        Sets the protocol to use for communicating with the remote process.
        Parameters:
        protocol - the protocol, or null if a default protocol for the specified port should be used
        Returns:
        a builder to allow continued configuration
      • setConnectionTimeout

        public ModelControllerClientConfiguration.Builder setConnectionTimeout​(int connectionTimeout)
        Maximum time, in milliseconds, to wait for the connection to be established
        Parameters:
        connectionTimeout - the timeout
        Returns:
        a builder to allow continued configuration
      • setAuthenticationConfigUri

        @Deprecated
        public ModelControllerClientConfiguration.Builder setAuthenticationConfigUri​(URI authConfigUri)
        Deprecated.
        this may be removed in a future release in favor of creating an AuthenticationContext and using a ContextualModelControllerClient
        Set the location of the authentication configuration file.
        Parameters:
        authConfigUri - the location to the authentication configuration file or null to use auto discovery
        Returns:
        a builder to allow continued configuration