Package interlok.http.apache.async
Class AsyncWithCredentials
- java.lang.Object
-
- interlok.http.apache.async.AsyncWithCredentials
-
- All Implemented Interfaces:
HttpAsyncClientBuilderConfig
@ComponentProfile(since="4.5.0", summary="Allows you to configure a \'CredentialsProvider\' when building the HttpClient") public class AsyncWithCredentials extends java.lang.Object implements HttpAsyncClientBuilderConfigAllows you to specify aCredentialsProvideras a default for theHttpClientBuilder.Most of the time you more likely to configure an
HttpAuthenticatorinstance on the producer, but this is included for completeness as a way of configuring theHttpClientBuilder.In the adapter configuration file this class is aliased as apache-http-async-client-builder-with-credentials which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description AsyncWithCredentials()
-
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.interlok.http.apache.credentials.CredentialsProviderBuildergetCredentialsProvider()The credentials provider.voidsetCredentialsProvider(interlok.http.apache.credentials.CredentialsProviderBuilder credentialsProvider)The credentials provider.AsyncWithCredentialswithProvider(interlok.http.apache.credentials.CredentialsProviderBuilder builder)
-
-
-
Method Detail
-
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
-
withProvider
public AsyncWithCredentials withProvider(interlok.http.apache.credentials.CredentialsProviderBuilder builder)
-
getCredentialsProvider
public interlok.http.apache.credentials.CredentialsProviderBuilder getCredentialsProvider()
The credentials provider.If not explicitly configured, then the resulting
CredentialsProvideris aorg.apache.http.impl.client.SystemDefaultCredentialsProviderwith no configuration.
-
setCredentialsProvider
public void setCredentialsProvider(interlok.http.apache.credentials.CredentialsProviderBuilder credentialsProvider)
The credentials provider.If not explicitly configured, then the resulting
CredentialsProvideris aorg.apache.http.impl.client.SystemDefaultCredentialsProviderwith no configuration.
-
-