@Factory
public class UrlConnectionClientFactory
extends java.lang.Object
URLConnection
based client.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HTTP_SERVICE_IMPL |
static java.lang.String |
URL_CONNECTION_SDK_HTTP_SERVICE |
Constructor and Description |
---|
UrlConnectionClientFactory() |
Modifier and Type | Method and Description |
---|---|
software.amazon.awssdk.http.SdkHttpClient |
systemPropertyClient(UrlConnectionClientConfiguration configuration)
Creates an
UrlConnectionHttpClient 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 an
UrlConnectionHttpClient client if there are no other clients configured. |
public static final java.lang.String HTTP_SERVICE_IMPL
public static final java.lang.String URL_CONNECTION_SDK_HTTP_SERVICE
@Bean(preDestroy="close") @Singleton @Requires(missingBeans=software.amazon.awssdk.http.SdkHttpClient.class) public software.amazon.awssdk.http.SdkHttpClient urlConnectionClient(UrlConnectionClientConfiguration configuration)
UrlConnectionHttpClient
client if there are no other clients configured.configuration
- The URLConnection client configurationSdkHttpClient
@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)
UrlConnectionHttpClient
client if the system property "software.amazon.awssdk.http.service.impl" is set to
"software.amazon.awssdk.http.urlconnection.UrlConnectionSdkHttpService".configuration
- The URLConnection client configurationSdkHttpClient