Class HttpClientFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<reactor.netty.http.client.HttpClient>, org.springframework.beans.factory.InitializingBean

    public class HttpClientFactory
    extends org.springframework.beans.factory.config.AbstractFactoryBean<reactor.netty.http.client.HttpClient>
    Factory Bean that allows users to extend and customize parts of the HttpClient. Also allows for testing the configuration of the HttpClient.
    Since:
    3.1.1
    Author:
    Spencer Gibb
    • Method Detail

      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<reactor.netty.http.client.HttpClient>
        Specified by:
        getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<reactor.netty.http.client.HttpClient>
      • createInstance

        protected reactor.netty.http.client.HttpClient createInstance()
        Specified by:
        createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<reactor.netty.http.client.HttpClient>
      • configureSsl

        protected reactor.netty.http.client.HttpClient configureSsl​(reactor.netty.http.client.HttpClient httpClient)
      • configureSslContext

        @Deprecated
        protected void configureSslContext​(HttpClientProperties.Ssl ssl,
                                           reactor.netty.tcp.SslProvider.SslContextSpec sslContextSpec)
        Deprecated.
      • configureProxy

        protected reactor.netty.http.client.HttpClient configureProxy​(reactor.netty.http.client.HttpClient httpClient)
      • getTrustedX509CertificatesForTrustManager

        @Deprecated
        protected X509Certificate[] getTrustedX509CertificatesForTrustManager()
        Deprecated.
      • setTrustManager

        @Deprecated
        protected void setTrustManager​(io.netty.handler.ssl.SslContextBuilder sslContextBuilder,
                                       X509Certificate... trustedX509Certificates)
        Deprecated.
      • setTrustManager

        @Deprecated
        protected void setTrustManager​(io.netty.handler.ssl.SslContextBuilder sslContextBuilder,
                                       TrustManagerFactory factory)
        Deprecated.
      • configureProxyProvider

        protected reactor.netty.transport.ProxyProvider.Builder configureProxyProvider​(HttpClientProperties.Proxy proxy,
                                                                                       reactor.netty.transport.ProxyProvider.TypeSpec proxySpec)
      • httpResponseDecoder

        protected reactor.netty.http.client.HttpResponseDecoderSpec httpResponseDecoder​(reactor.netty.http.client.HttpResponseDecoderSpec spec)
      • buildConnectionProvider

        protected reactor.netty.resources.ConnectionProvider buildConnectionProvider​(HttpClientProperties properties)