Package interlok.http.apache.async
Class AsyncWithInterceptors
- java.lang.Object
-
- interlok.http.apache.async.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 HttpAsyncClientBuilderConfigHttpClientBuilderConfiguratorinstance that allows additionalHttpRequestInterceptorinstances 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.
-
-
Constructor Summary
Constructors Constructor Description AsyncWithInterceptors()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.http.impl.nio.client.HttpAsyncClientBuilderconfigure(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 theHttpClientBuilder.protected java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder>requestInterceptors()voidsetRequestInterceptors(java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> requestInterceptors)Additional request interceptors that will be added to theHttpClientBuilder.AsyncWithInterceptorswithInterceptors(com.adaptris.core.http.apache.request.RequestInterceptorBuilder... interceptors)AsyncWithInterceptorswithInterceptors(java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> builders)
-
-
-
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.ExceptionDescription copied from interface:HttpAsyncClientBuilderConfigDo any additional configuration.- Specified by:
configurein interfaceHttpAsyncClientBuilderConfig- 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 theHttpClientBuilder.
-
setRequestInterceptors
public void setRequestInterceptors(java.util.List<com.adaptris.core.http.apache.request.RequestInterceptorBuilder> requestInterceptors)
Additional request interceptors that will be added to theHttpClientBuilder.
-
-