org.springframework.http.client

Class Netty4ClientHttpRequestFactory

  • java.lang.Object
    • org.springframework.http.client.Netty4ClientHttpRequestFactory
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int DEFAULT_MAX_RESPONSE_SIZE
      Deprecated. 
      The default maximum response size.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Netty4ClientHttpRequestFactory()
      Deprecated. 
      Create a new Netty4ClientHttpRequestFactory with a default NioEventLoopGroup.
      Netty4ClientHttpRequestFactory(io.netty.channel.EventLoopGroup eventLoopGroup)
      Deprecated. 
      Create a new Netty4ClientHttpRequestFactory with the given EventLoopGroup.
    • Constructor Detail

      • Netty4ClientHttpRequestFactory

        public Netty4ClientHttpRequestFactory()
        Deprecated. 
        Create a new Netty4ClientHttpRequestFactory with a default NioEventLoopGroup.
      • Netty4ClientHttpRequestFactory

        public Netty4ClientHttpRequestFactory(io.netty.channel.EventLoopGroup eventLoopGroup)
        Deprecated. 
        Create a new Netty4ClientHttpRequestFactory with the given EventLoopGroup.

        NOTE: the given group will not be shutdown by this factory; doing so becomes the responsibility of the caller.

    • Method Detail

      • setMaxResponseSize

        public void setMaxResponseSize(int maxResponseSize)
        Deprecated. 
        Set the default maximum response size.

        By default this is set to DEFAULT_MAX_RESPONSE_SIZE.

        Since:
        4.1.5
        See Also:
        HttpObjectAggregator.HttpObjectAggregator(int)
      • setSslContext

        public void setSslContext(io.netty.handler.ssl.SslContext sslContext)
        Deprecated. 
        Set the SSL context. When configured it is used to create and insert an SslHandler in the channel pipeline.

        A default client SslContext is configured if none has been provided.

      • setConnectTimeout

        public void setConnectTimeout(int connectTimeout)
        Deprecated. 
        Set the underlying connect timeout (in milliseconds). A timeout value of 0 specifies an infinite timeout.
        See Also:
        ChannelConfig.setConnectTimeoutMillis(int)
      • setReadTimeout

        public void setReadTimeout(int readTimeout)
        Deprecated. 
        Set the underlying URLConnection's read timeout (in milliseconds). A timeout value of 0 specifies an infinite timeout.
        See Also:
        ReadTimeoutHandler
      • afterPropertiesSet

        public void afterPropertiesSet()
        Deprecated. 
        Description copied from interface: InitializingBean
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        Specified by:
        afterPropertiesSet in interface InitializingBean
      • configureChannel

        protected void configureChannel(io.netty.channel.socket.SocketChannelConfig config)
        Deprecated. 
        Template method for changing properties on the given SocketChannelConfig.

        The default implementation sets the connect timeout based on the set property.

        Parameters:
        config - the channel configuration
      • destroy

        public void destroy()
                     throws java.lang.InterruptedException
        Deprecated. 
        Description copied from interface: DisposableBean
        Invoked by the containing BeanFactory on destruction of a bean.
        Specified by:
        destroy in interface DisposableBean
        Throws:
        java.lang.InterruptedException