Class AbstractClientAPIHandler

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    AbstractVersionAPIHandler

    public abstract class AbstractClientAPIHandler
    extends AbstractAPIHandler
    implements java.lang.AutoCloseable
    Class for API httpRequests that contains a HttpClient and a HttpLogger.
    • Field Detail

      • followRedirects

        protected final boolean followRedirects
      • connectTimeout

        protected final java.lang.Long connectTimeout
      • sslParameters

        protected final javax.net.ssl.SSLParameters sslParameters
      • httpClient

        protected java.net.http.HttpClient httpClient
      • sslContext

        protected javax.net.ssl.SSLContext sslContext
      • maxConnectionPool

        protected final int maxConnectionPool
      • httpLogger

        protected final HttpLogger httpLogger
      • externalHttpClient

        protected boolean externalHttpClient
    • Constructor Detail

      • AbstractClientAPIHandler

        protected AbstractClientAPIHandler​(AbstractClientAPIHandler.Conf<?> builder)
        Protected Constructor. Attributes shall be filled via builders.
        Parameters:
        builder - The builder to use.
    • Method Detail

      • close

        public void close()
        Shut the httpClient down by shutting down its ExecutorService. If the httpClient has been provided externally, this call will be ignored.
        Specified by:
        close in interface java.lang.AutoCloseable