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 ofSdkHttpClient
that uses JDKs build-inURLConnection
HTTP implementation. A builder can be created viaUrlConnectionHttpClient.builder()
.SdkHttpClient httpClient = UrlConnectionHttpClient.builder() .socketTimeout(Duration.ofSeconds(10)) .connectionTimeout(Duration.ofSeconds(1)) .build();
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UrlConnectionHttpClient.Builder
connectionTimeout(Duration connectionTimeout)
The amount of time to wait when initially establishing a connection before giving up and timing out.UrlConnectionHttpClient.Builder
proxyConfiguration(Consumer<ProxyConfiguration.Builder> proxyConfigurationBuilderConsumer)
Sets the http proxy configuration to use for this client.UrlConnectionHttpClient.Builder
proxyConfiguration(ProxyConfiguration proxyConfiguration)
Configuration that defines how to communicate via an HTTP proxy.UrlConnectionHttpClient.Builder
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.UrlConnectionHttpClient.Builder
tlsKeyManagersProvider(TlsKeyManagersProvider tlsKeyManagersProvider)
Configure theTlsKeyManagersProvider
that will provide theKeyManager
s to use when constructing the SSL context.UrlConnectionHttpClient.Builder
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 Detail
-
socketTimeout
UrlConnectionHttpClient.Builder 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. A duration of 0 means infinity, and is not recommended.
-
connectionTimeout
UrlConnectionHttpClient.Builder connectionTimeout(Duration 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
UrlConnectionHttpClient.Builder proxyConfiguration(ProxyConfiguration 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.
-
-