Class ApacheHttpClient
java.lang.Object
software.amazon.awssdk.http.apache.ApacheHttpClient
- All Implemented Interfaces:
AutoCloseable,SdkHttpClient,SdkAutoCloseable
An implementation of
SdkHttpClient that 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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder for creating an instance ofSdkHttpClient. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ApacheHttpClient.Builderbuilder()voidclose()static SdkHttpClientcreate()Create aApacheHttpClientwith the default propertiesprepareRequest(HttpExecuteRequest request)
-
Field Details
-
CLIENT_NAME
- See Also:
-
-
Method Details
-
builder
-
create
Create aApacheHttpClientwith the default properties- Returns:
- an
ApacheHttpClient
-
prepareRequest
- Specified by:
prepareRequestin interfaceSdkHttpClient
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable
-
clientName
- Specified by:
clientNamein interfaceSdkHttpClient
-