Class ApacheClientFactory
java.lang.Object
io.micronaut.aws.sdk.v2.client.apache.ApacheClientFactory
Factory that creates an Apache HTTP client.
- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.http.SdkHttpClient
apacheClient
(ApacheClientConfiguration configuration) software.amazon.awssdk.http.SdkHttpClient
systemPropertyClient
(ApacheClientConfiguration configuration)
-
Field Details
-
APACHE_SDK_HTTP_SERVICE
- See Also:
-
-
Constructor Details
-
ApacheClientFactory
public ApacheClientFactory()
-
-
Method Details
-
apacheClient
@Bean(preDestroy="close") @Singleton @Requires(property="software.amazon.awssdk.http.service.impl", notEquals="software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService") public software.amazon.awssdk.http.SdkHttpClient apacheClient(ApacheClientConfiguration configuration) - Parameters:
configuration
- The Apache client configuration- Returns:
- An instance of
SdkHttpClient
-
systemPropertyClient
@Bean(preDestroy="close") @Singleton @Requires(property="software.amazon.awssdk.http.service.impl", value="software.amazon.awssdk.http.apache.ApacheSdkHttpService") public software.amazon.awssdk.http.SdkHttpClient systemPropertyClient(ApacheClientConfiguration configuration) - Parameters:
configuration
- The Apache client configuration- Returns:
- An instance of
SdkHttpClient
-