Class RequestInterceptorClientBuilder

  • All Implemented Interfaces:
    HttpClientBuilderConfigurator

    public class RequestInterceptorClientBuilder
    extends java.lang.Object
    implements HttpClientBuilderConfigurator
    HttpClientBuilderConfigurator instance that allows additional HttpRequestInterceptor instances to be added to the outgoing request.

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

    • Constructor Detail

      • RequestInterceptorClientBuilder

        public RequestInterceptorClientBuilder()
    • Method Detail

      • configure

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

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

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