Class AbstractClientAPIHandler.Conf<T extends AbstractClientAPIHandler.Conf<T>>

    • Field Detail

      • followRedirects

        protected boolean followRedirects
      • acceptAllCerts

        protected java.lang.Boolean acceptAllCerts
      • connectTimeout

        protected java.lang.Long connectTimeout
      • sslParameters

        protected javax.net.ssl.SSLParameters sslParameters
      • httpClient

        protected java.net.http.HttpClient httpClient
      • sslContext

        protected javax.net.ssl.SSLContext sslContext
      • maxConnectionPool

        protected int maxConnectionPool
      • maxBinaryLogLength

        protected int maxBinaryLogLength
    • Constructor Detail

      • Conf

        public Conf()
    • Method Detail

      • isFollowRedirects

        public boolean isFollowRedirects()
      • setFollowRedirects

        public T setFollowRedirects​(boolean followRedirects)
        Parameters:
        followRedirects - Enable Redirect.NORMAL. Default is true.
        Returns:
        AbstractAPIHandler.Conf.self()
      • getConnectTimeout

        public java.lang.Long getConnectTimeout()
      • setConnectTimeout

        public T setConnectTimeout​(java.lang.Long connectTimeout)
        Parameters:
        connectTimeout - Connect timeout in milliseconds.
        Returns:
        AbstractAPIHandler.Conf.self()
      • getAcceptAllCerts

        public java.lang.Boolean getAcceptAllCerts()
      • setAcceptAllCerts

        public T setAcceptAllCerts​(java.lang.Boolean acceptAllCerts)
        Skip SSL certificate verification. Leave this unset to use the default in HttpClient. Setting this to true installs a permissive SSLContext, setting it to false removes the SSLContext to use the default.
        Parameters:
        acceptAllCerts - the toggle
        Returns:
        AbstractAPIHandler.Conf.self()
      • getSslContext

        public javax.net.ssl.SSLContext getSslContext()
      • getSslParameters

        public javax.net.ssl.SSLParameters getSslParameters()
      • setSslParameters

        public T setSslParameters​(javax.net.ssl.SSLParameters sslParameters)
        Parameters:
        sslParameters - The specific SSLParameters to use.
        Returns:
        AbstractAPIHandler.Conf.self()
      • getHttpClient

        public java.net.http.HttpClient getHttpClient()
      • setHttpClient

        public T setHttpClient​(java.net.http.HttpClient httpClient)
        Instance of an externally configured http client. An internal HttpClient will be built with parameters given by this Builder if this is not set.
        Parameters:
        httpClient - Instance of an HttpClient.
        Returns:
        AbstractAPIHandler.Conf.self()
      • getMaxConnectionPool

        public int getMaxConnectionPool()
      • setMaxConnectionPool

        public T setMaxConnectionPool​(int maxConnectionPool)
        Set the maximum of open connections for this HttpClient (This sets the fixedThreadPool for the Executor of the HttpClient).
        Parameters:
        maxConnectionPool - Maximum size of the pool. Default is 8.
        Returns:
        AbstractAPIHandler.Conf.self()
      • getMaxBinaryLogLength

        public int getMaxBinaryLogLength()
      • setMaxBinaryLogLength

        public T setMaxBinaryLogLength​(int maxBinaryLogLength)
        Maximum size to log binary data in logfiles. Default is 1024.
        Parameters:
        maxBinaryLogLength - Size in bytes
        Returns:
        AbstractAPIHandler.Conf.self()