类 AbstractHttpClientFactory

java.lang.Object
com.alibaba.nacos.common.http.AbstractHttpClientFactory
所有已实现的接口:
HttpClientFactory
直接已知子类:
AbstractApacheHttpClientFactory, DefaultHttpClientFactory

public abstract class AbstractHttpClientFactory extends Object implements HttpClientFactory
AbstractHttpClientFactory Let the creator only specify the http client config.
作者:
mai.jh
  • 构造器详细资料

    • AbstractHttpClientFactory

      public AbstractHttpClientFactory()
  • 方法详细资料

    • createNacosRestTemplate

      public NacosRestTemplate createNacosRestTemplate()
      从接口复制的说明: HttpClientFactory
      create new nacost rest.
      指定者:
      createNacosRestTemplate 在接口中 HttpClientFactory
      返回:
      NacosRestTemplate
    • createNacosAsyncRestTemplate

      public NacosAsyncRestTemplate createNacosAsyncRestTemplate()
      从接口复制的说明: HttpClientFactory
      create new nacos async rest.
      指定者:
      createNacosAsyncRestTemplate 在接口中 HttpClientFactory
      返回:
      NacosAsyncRestTemplate
    • getIoReactorConfig

      protected org.apache.hc.core5.reactor.IOReactorConfig getIoReactorConfig()
    • getRequestConfig

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

      protected void initTls(BiConsumer<SSLContext,HostnameVerifier> initTlsBiFunc, TlsFileWatcher.FileChangeListener tlsChangeListener)
    • loadSslContext

      protected SSLContext loadSslContext()
    • buildHttpClientConfig

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

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

      protected void monitorAndExtension(org.apache.hc.client5.http.nio.AsyncClientConnectionManager connectionManager)
      add some monitor and do some extension. default empty implementation, implemented by subclass