Package interlok.http.apache.async
Class CompositeAsyncClientBuilder
- java.lang.Object
-
- interlok.http.apache.async.CompositeAsyncClientBuilder
-
- All Implemented Interfaces:
HttpAsyncClientBuilderConfig
@ComponentProfile(since="4.5.0", summary="Allows you to configure additional configuration when building the HttpAsyncClient") public class CompositeAsyncClientBuilder extends java.lang.Object implements HttpAsyncClientBuilderConfigHttpAsyncClientBuilderConfigimplementation that wraps a list of implementations.- See Also:
AsyncWithCustomKeystores,DefaultAsyncClientBuilder,AsyncWithInterceptors
In the adapter configuration file this class is aliased as apache-http-composite-async-client-builder which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description CompositeAsyncClientBuilder()
-
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<HttpAsyncClientBuilderConfig>getBuilders()The list of builders that will be used in turn to configure theHttpAsyncClientBuilder.voidsetBuilders(java.util.List<HttpAsyncClientBuilderConfig> builders)The list of builders that will be used in turn to configure theHttpAsyncClientBuilder.<T extends CompositeAsyncClientBuilder>
TwithBuilders(HttpAsyncClientBuilderConfig... builders)<T extends CompositeAsyncClientBuilder>
TwithBuilders(java.util.List<HttpAsyncClientBuilderConfig> builders)
-
-
-
Method Detail
-
withBuilders
public <T extends CompositeAsyncClientBuilder> T withBuilders(HttpAsyncClientBuilderConfig... builders)
-
withBuilders
public <T extends CompositeAsyncClientBuilder> T withBuilders(java.util.List<HttpAsyncClientBuilderConfig> builders)
-
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
-
getBuilders
public java.util.List<HttpAsyncClientBuilderConfig> getBuilders()
The list of builders that will be used in turn to configure theHttpAsyncClientBuilder.
-
setBuilders
public void setBuilders(java.util.List<HttpAsyncClientBuilderConfig> builders)
The list of builders that will be used in turn to configure theHttpAsyncClientBuilder.
-
-