Package com.adaptris.core.http.apache5
Class RequestInterceptorClientBuilder
- java.lang.Object
-
- com.adaptris.core.http.apache5.RequestInterceptorClientBuilder
-
- All Implemented Interfaces:
HttpClientBuilderConfigurator
public class RequestInterceptorClientBuilder extends java.lang.Object implements HttpClientBuilderConfigurator
HttpClientBuilderConfiguratorinstance that allows additionalHttpRequestInterceptorinstances 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 Summary
Constructors Constructor Description RequestInterceptorClientBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hc.client5.http.impl.classic.HttpClientBuilderconfigure(org.apache.hc.client5.http.impl.classic.HttpClientBuilder builder)Do any additional configuration.java.util.List<RequestInterceptorBuilder>getRequestInterceptors()protected java.util.List<RequestInterceptorBuilder>requestInterceptors()voidsetRequestInterceptors(java.util.List<RequestInterceptorBuilder> list)Set any additional request interceptors that will be added to theHttpClientBuilder.RequestInterceptorClientBuilderwithInterceptors(RequestInterceptorBuilder... interceptors)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.http.apache5.HttpClientBuilderConfigurator
configure
-
-
-
-
Method Detail
-
getRequestInterceptors
public java.util.List<RequestInterceptorBuilder> getRequestInterceptors()
-
setRequestInterceptors
public void setRequestInterceptors(java.util.List<RequestInterceptorBuilder> list)
Set any additional request interceptors that will be added to theHttpClientBuilder.- Parameters:
list-
-
withInterceptors
public RequestInterceptorClientBuilder withInterceptors(RequestInterceptorBuilder... interceptors)
-
requestInterceptors
protected java.util.List<RequestInterceptorBuilder> requestInterceptors()
-
configure
public org.apache.hc.client5.http.impl.classic.HttpClientBuilder configure(org.apache.hc.client5.http.impl.classic.HttpClientBuilder builder) throws java.lang.ExceptionDescription copied from interface:HttpClientBuilderConfiguratorDo any additional configuration.- Specified by:
configurein interfaceHttpClientBuilderConfigurator- Parameters:
builder- the existing builder- Returns:
- a reconfigured builder.
- Throws:
java.lang.Exception
-
-