Class AsyncWithInterceptors

  • All Implemented Interfaces:
    HttpAsyncClientBuilderConfig

    @ComponentProfile(since="4.5.0",
                      summary="Allows you to configure additional interceptors when building the HttpAsyncClient")
    public class AsyncWithInterceptors
    extends java.lang.Object
    implements HttpAsyncClientBuilderConfig
    HttpClientBuilderConfigurator instance that allows additional HttpRequestInterceptor instances to be added to the outgoing request.

    In the adapter configuration file this class is aliased as apache-http-async-client-builder-with-request-interceptors which is the preferred alternative to the fully qualified classname when building your configuration.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.http.impl.nio.client.HttpAsyncClientBuilder configure​(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder)
      Do any additional configuration.
      java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> getRequestInterceptors()
      Additional request interceptors that will be added to the HttpClientBuilder.
      protected java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> requestInterceptors()  
      void setRequestInterceptors​(java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> requestInterceptors)
      Additional request interceptors that will be added to the HttpClientBuilder.
      AsyncWithInterceptors withInterceptors​(com.adaptris.core.http.apache.request.RequestInterceptorBuilder... interceptors)  
      AsyncWithInterceptors withInterceptors​(java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> builders)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AsyncWithInterceptors

        public AsyncWithInterceptors()
    • Method Detail

      • withInterceptors

        public AsyncWithInterceptors withInterceptors​(com.adaptris.core.http.apache.request.RequestInterceptorBuilder... interceptors)
      • withInterceptors

        public AsyncWithInterceptors withInterceptors​(java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> builders)
      • requestInterceptors

        protected java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> requestInterceptors()
      • configure

        public org.apache.http.impl.nio.client.HttpAsyncClientBuilder configure​(org.apache.http.impl.nio.client.HttpAsyncClientBuilder builder)
                                                                         throws java.lang.Exception
        Description copied from interface: HttpAsyncClientBuilderConfig
        Do any additional configuration.
        Specified by:
        configure in interface HttpAsyncClientBuilderConfig
        Parameters:
        builder - the existing builder
        Returns:
        a reconfigured builder.
        Throws:
        java.lang.Exception
      • getRequestInterceptors

        public java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> getRequestInterceptors()
        Additional request interceptors that will be added to the HttpClientBuilder.
      • setRequestInterceptors

        public void setRequestInterceptors​(java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> requestInterceptors)
        Additional request interceptors that will be added to the HttpClientBuilder.