Class ApacheHttpClient
- java.lang.Object
- 
- software.amazon.awssdk.http.apache.ApacheHttpClient
 
- 
- All Implemented Interfaces:
- AutoCloseable,- SdkHttpClient,- SdkAutoCloseable
 
 public final class ApacheHttpClient extends Object implements SdkHttpClient An implementation ofSdkHttpClientthat uses Apache HttpClient 4.x to communicate with the service. This is a full-featured synchronous client that adds an extra dependency and higher startup latency compared to UrlConnectionHttpClient in exchange for more functionality, like support for HTTP proxies.See software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient for an alternative implementation. This can be created via builder()
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceApacheHttpClient.BuilderBuilder for creating an instance ofSdkHttpClient.
 - 
Field SummaryFields Modifier and Type Field Description static StringCLIENT_NAME
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApacheHttpClient.Builderbuilder()StringclientName()voidclose()static SdkHttpClientcreate()Create aApacheHttpClientwith the default propertiesExecutableHttpRequestprepareRequest(HttpExecuteRequest request)
 
- 
- 
- 
Field Detail- 
CLIENT_NAMEpublic static final String CLIENT_NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
builderpublic static ApacheHttpClient.Builder builder() 
 - 
createpublic static SdkHttpClient create() Create aApacheHttpClientwith the default properties- Returns:
- an ApacheHttpClient
 
 - 
prepareRequestpublic ExecutableHttpRequest prepareRequest(HttpExecuteRequest request) - Specified by:
- prepareRequestin interface- SdkHttpClient
 
 - 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- SdkAutoCloseable
 
 - 
clientNamepublic String clientName() - Specified by:
- clientNamein interface- SdkHttpClient
 
 
- 
 
-