Interface UrlConnectionHttpClient.Builder
- All Superinterfaces:
Buildable
,SdkBuilder<UrlConnectionHttpClient.Builder,
,SdkHttpClient> SdkHttpClient.Builder<UrlConnectionHttpClient.Builder>
- Enclosing class:
UrlConnectionHttpClient
public static interface UrlConnectionHttpClient.Builder
extends SdkHttpClient.Builder<UrlConnectionHttpClient.Builder>
A builder for an instance of
SdkHttpClient
that uses JDKs build-in URLConnection
HTTP
implementation. A builder can be created via UrlConnectionHttpClient.builder()
.
SdkHttpClient httpClient = UrlConnectionHttpClient.builder() .socketTimeout(Duration.ofSeconds(10)) .connectionTimeout(Duration.ofSeconds(1)) .build();
-
Method Summary
Modifier and TypeMethodDescriptionconnectionTimeout
(Duration connectionTimeout) The amount of time to wait when initially establishing a connection before giving up and timing out.proxyConfiguration
(Consumer<ProxyConfiguration.Builder> proxyConfigurationBuilderConsumer) Sets the http proxy configuration to use for this client.proxyConfiguration
(ProxyConfiguration proxyConfiguration) Configuration that defines how to communicate via an HTTP proxy.socketTimeout
(Duration socketTimeout) The amount of time to wait for data to be transferred over an established, open connection before the connection is timed out.tlsKeyManagersProvider
(TlsKeyManagersProvider tlsKeyManagersProvider) Configure theTlsKeyManagersProvider
that will provide theKeyManager
s to use when constructing the SSL context.tlsTrustManagersProvider
(TlsTrustManagersProvider tlsTrustManagersProvider) Configure theTlsTrustManagersProvider
that will provide theTrustManager
s to use when constructing the SSL context.Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
Methods inherited from interface software.amazon.awssdk.http.SdkHttpClient.Builder
build, buildWithDefaults
-
Method Details
-
socketTimeout
The amount of time to wait for data to be transferred over an established, open connection before the connection is timed out. A duration of 0 means infinity, and is not recommended. -
connectionTimeout
The amount of time to wait when initially establishing a connection before giving up and timing out. A duration of 0 means infinity, and is not recommended. -
tlsKeyManagersProvider
UrlConnectionHttpClient.Builder tlsKeyManagersProvider(TlsKeyManagersProvider tlsKeyManagersProvider) Configure theTlsKeyManagersProvider
that will provide theKeyManager
s to use when constructing the SSL context. -
tlsTrustManagersProvider
UrlConnectionHttpClient.Builder tlsTrustManagersProvider(TlsTrustManagersProvider tlsTrustManagersProvider) Configure theTlsTrustManagersProvider
that will provide theTrustManager
s to use when constructing the SSL context. -
proxyConfiguration
Configuration that defines how to communicate via an HTTP proxy.- Parameters:
proxyConfiguration
- proxy configuration builder object.- Returns:
- the builder for method chaining.
-
proxyConfiguration
UrlConnectionHttpClient.Builder proxyConfiguration(Consumer<ProxyConfiguration.Builder> proxyConfigurationBuilderConsumer) Sets the http proxy configuration to use for this client.- Parameters:
proxyConfigurationBuilderConsumer
- The consumer of the proxy configuration builder object.- Returns:
- the builder for method chaining.
-