类 AbstractHttpClientFactory

    • 构造器详细资料

      • AbstractHttpClientFactory

        public AbstractHttpClientFactory()
    • 方法详细资料

      • getIoReactor

        private org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor getIoReactor()
      • getConnectionManager

        private org.apache.http.nio.conn.NHttpClientConnectionManager getConnectionManager​(HttpClientConfig originalRequestConfig,
                                                                                           org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor ioreactor)
        create the NHttpClientConnectionManager, the code mainly from HttpAsyncClientBuilder.build(). we add the IOReactorExceptionHandler to handle the IOException and RuntimeException thrown by the BaseIOReactor when process the event of Network. Using this way to avoid the DefaultConnectingIOReactor killed by unknown error of network.
        参数:
        originalRequestConfig - request config.
        ioreactor - I/O reactor.
        返回:
        NHttpClientConnectionManager.
      • getIoReactorConfig

        protected org.apache.http.impl.nio.reactor.IOReactorConfig getIoReactorConfig()
      • getRequestConfig

        protected org.apache.http.client.config.RequestConfig getRequestConfig()
      • initTls

        protected void initTls​(java.util.function.BiConsumer<javax.net.ssl.SSLContext,​javax.net.ssl.HostnameVerifier> initTlsBiFunc,
                               TlsFileWatcher.FileChangeListener tlsChangeListener)
      • loadSSLContext

        protected javax.net.ssl.SSLContext loadSSLContext()
      • buildHttpClientConfig

        protected abstract HttpClientConfig buildHttpClientConfig()
        build http client config.
        返回:
        HttpClientConfig
      • assignLogger

        protected abstract org.slf4j.Logger assignLogger()
        assign Logger.
        返回:
        Logger