Class UrlConnectionClientFactory
java.lang.Object
io.micronaut.aws.sdk.v2.client.urlConnection.UrlConnectionClientFactory
Factory that creates an
URLConnection
based client.- Since:
- 2.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.http.SdkHttpClient
systemPropertyClient
(UrlConnectionClientConfiguration configuration) Creates anUrlConnectionHttpClient
client if the system property "software.amazon.awssdk.http.service.impl" is set to "software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService".software.amazon.awssdk.http.SdkHttpClient
urlConnectionClient
(UrlConnectionClientConfiguration configuration) Creates anUrlConnectionHttpClient
client if there are no other clients configured.
-
Field Details
-
HTTP_SERVICE_IMPL
- See Also:
-
URL_CONNECTION_SDK_HTTP_SERVICE
- See Also:
-
-
Constructor Details
-
UrlConnectionClientFactory
public UrlConnectionClientFactory()
-
-
Method Details
-
urlConnectionClient
@Bean(preDestroy="close") @Singleton @Requires(missingBeans=software.amazon.awssdk.http.SdkHttpClient.class) public software.amazon.awssdk.http.SdkHttpClient urlConnectionClient(UrlConnectionClientConfiguration configuration) Creates anUrlConnectionHttpClient
client if there are no other clients configured.- Parameters:
configuration
- The URLConnection 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.urlconnection.UrlConnectionSdkHttpService") public software.amazon.awssdk.http.SdkHttpClient systemPropertyClient(UrlConnectionClientConfiguration configuration) Creates anUrlConnectionHttpClient
client if the system property "software.amazon.awssdk.http.service.impl" is set to "software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService".- Parameters:
configuration
- The URLConnection client configuration- Returns:
- An instance of
SdkHttpClient
-