Package com.adaptris.core.http.apache
Class RequestInterceptorClientBuilder
- java.lang.Object
-
- com.adaptris.core.http.apache.RequestInterceptorClientBuilder
-
- All Implemented Interfaces:
HttpClientBuilderConfigurator
public class RequestInterceptorClientBuilder extends java.lang.Object implements HttpClientBuilderConfigurator
HttpClientBuilderConfigurator
instance that allows additionalHttpRequestInterceptor
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 Summary
Constructors Constructor Description RequestInterceptorClientBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.impl.client.HttpClientBuilder
configure(org.apache.http.impl.client.HttpClientBuilder builder)
Do any additional configuration.java.util.List<RequestInterceptorBuilder>
getRequestInterceptors()
protected java.util.List<RequestInterceptorBuilder>
requestInterceptors()
void
setRequestInterceptors(java.util.List<RequestInterceptorBuilder> list)
Set any additional request interceptors that will be added to theHttpClientBuilder
.RequestInterceptorClientBuilder
withInterceptors(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.apache.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.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 interfaceHttpClientBuilderConfigurator
- Parameters:
builder
- the existing builder- Returns:
- a reconfigured builder.
- Throws:
java.lang.Exception
-
-