Class HttpClientProperties
- All Implemented Interfaces:
- Serializable
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringUsed to configure the connection acquisition timeout in milliseconds forApacheHttpClient.Builder.static final StringUsed to configure the connection max idle time in milliseconds forApacheHttpClient.Builder.static final StringUsed to configure the connection time to live in milliseconds forApacheHttpClient.Builder.static final StringUsed to configure the connection timeout in milliseconds forApacheHttpClient.Builder.static final StringUsed to configure whether to enable the expect continue setting forApacheHttpClient.Builder.static final StringUsed to configure the max connections number forApacheHttpClient.Builder.static final StringUsed to configure the socket timeout in milliseconds forApacheHttpClient.Builder.static final StringUsed to configure whether to enable the tcp keep alive setting forApacheHttpClient.Builder.static final StringUsed to configure whether to use idle connection reaper forApacheHttpClient.Builder.static final StringThe type ofSdkHttpClientimplementation used byAwsClientFactoryIf set, all AWS clients will use this specified HTTP client.static final StringIf this is set underCLIENT_TYPE,ApacheHttpClientwill be used as the HTTP Client inAwsClientFactorystatic final Stringstatic final StringIf this is set underCLIENT_TYPE,UrlConnectionHttpClientwill be used as the HTTP Client inAwsClientFactorystatic final StringUsed to configure the proxy endpoint.static final StringUsed to configure the connection timeout in milliseconds forUrlConnectionHttpClient.Builder.static final StringUsed to configure the socket timeout in milliseconds forUrlConnectionHttpClient.Builder.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T extends software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder>
 voidapplyHttpClientConfigurations(T builder) Configure the httpClient for a client according to the HttpClientType.
- 
Field Details- 
CLIENT_TYPEThe type ofSdkHttpClientimplementation used byAwsClientFactoryIf set, all AWS clients will use this specified HTTP client. If not set,CLIENT_TYPE_DEFAULTwill be used. For specific types supported, see CLIENT_TYPE_* defined below.- See Also:
 
- 
CLIENT_TYPE_APACHEIf this is set underCLIENT_TYPE,ApacheHttpClientwill be used as the HTTP Client inAwsClientFactory- See Also:
 
- 
CLIENT_TYPE_URLCONNECTIONIf this is set underCLIENT_TYPE,UrlConnectionHttpClientwill be used as the HTTP Client inAwsClientFactory- See Also:
 
- 
CLIENT_TYPE_DEFAULT- See Also:
 
- 
PROXY_ENDPOINTUsed to configure the proxy endpoint. Used by bothUrlConnectionHttpClient.BuilderandApacheHttpClient.Builder- See Also:
 
- 
URLCONNECTION_CONNECTION_TIMEOUT_MSUsed to configure the connection timeout in milliseconds forUrlConnectionHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_URLCONNECTIONFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/urlconnection/UrlConnectionHttpClient.Builder.html - See Also:
 
- 
URLCONNECTION_SOCKET_TIMEOUT_MSUsed to configure the socket timeout in milliseconds forUrlConnectionHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_URLCONNECTIONFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/urlconnection/UrlConnectionHttpClient.Builder.html - See Also:
 
- 
APACHE_CONNECTION_TIMEOUT_MSUsed to configure the connection timeout in milliseconds forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html - See Also:
 
- 
APACHE_SOCKET_TIMEOUT_MSUsed to configure the socket timeout in milliseconds forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html - See Also:
 
- 
APACHE_CONNECTION_ACQUISITION_TIMEOUT_MSUsed to configure the connection acquisition timeout in milliseconds forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html - See Also:
 
- 
APACHE_CONNECTION_MAX_IDLE_TIME_MSUsed to configure the connection max idle time in milliseconds forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html - See Also:
 
- 
APACHE_CONNECTION_TIME_TO_LIVE_MSUsed to configure the connection time to live in milliseconds forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html - See Also:
 
- 
APACHE_EXPECT_CONTINUE_ENABLEDUsed to configure whether to enable the expect continue setting forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEIn default, this is disabled. For more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html - See Also:
 
- 
APACHE_MAX_CONNECTIONSUsed to configure the max connections number forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHEFor more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html - See Also:
 
- 
APACHE_TCP_KEEP_ALIVE_ENABLEDUsed to configure whether to enable the tcp keep alive setting forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHE.In default, this is disabled. For more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html - See Also:
 
- 
APACHE_USE_IDLE_CONNECTION_REAPER_ENABLEDUsed to configure whether to use idle connection reaper forApacheHttpClient.Builder. This flag only works whenCLIENT_TYPEis set toCLIENT_TYPE_APACHE.In default, this is enabled. For more details, see https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/http/apache/ApacheHttpClient.Builder.html - See Also:
 
 
- 
- 
Constructor Details- 
HttpClientPropertiespublic HttpClientProperties()
- 
HttpClientProperties
 
- 
- 
Method Details- 
applyHttpClientConfigurationspublic <T extends software.amazon.awssdk.awscore.client.builder.AwsSyncClientBuilder> void applyHttpClientConfigurations(T builder) Configure the httpClient for a client according to the HttpClientType. The two supported HttpClientTypes are urlconnection and apacheSample usage: S3Client.builder().applyMutation(awsProperties::applyHttpClientConfigurations)
 
-