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 ofSdkHttpClientthat uses JDKs build-inURLConnectionHTTP 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.BuilderconnectionTimeout(Duration connectionTimeout)The amount of time to wait when initially establishing a connection before giving up and timing out.UrlConnectionHttpClient.BuilderproxyConfiguration(Consumer<ProxyConfiguration.Builder> proxyConfigurationBuilderConsumer)Sets the http proxy configuration to use for this client.UrlConnectionHttpClient.BuilderproxyConfiguration(ProxyConfiguration proxyConfiguration)Configuration that defines how to communicate via an HTTP proxy.UrlConnectionHttpClient.BuildersocketTimeout(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.BuildertlsKeyManagersProvider(TlsKeyManagersProvider tlsKeyManagersProvider)Configure theTlsKeyManagersProviderthat will provide theKeyManagers to use when constructing the SSL context.UrlConnectionHttpClient.BuildertlsTrustManagersProvider(TlsTrustManagersProvider tlsTrustManagersProvider)Configure theTlsTrustManagersProviderthat will provide theTrustManagers 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 theTlsKeyManagersProviderthat will provide theKeyManagers to use when constructing the SSL context.
-
tlsTrustManagersProvider
UrlConnectionHttpClient.Builder tlsTrustManagersProvider(TlsTrustManagersProvider tlsTrustManagersProvider)
Configure theTlsTrustManagersProviderthat will provide theTrustManagers 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.
-
-