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 HTTP client to communicate with the service. This is the most powerful synchronous client that adds an extra dependency and additional startup latency 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 Classes Modifier and Type Class Description static interfaceApacheHttpClient.BuilderBuilder for creating an instance ofSdkHttpClient.
-
Field Summary
Fields Modifier and Type Field Description static StringCLIENT_NAME
-
Method Summary
All 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_NAME
public static final String CLIENT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static ApacheHttpClient.Builder builder()
-
create
public static SdkHttpClient create()
Create aApacheHttpClientwith the default properties- Returns:
- an
ApacheHttpClient
-
prepareRequest
public ExecutableHttpRequest prepareRequest(HttpExecuteRequest request)
- Specified by:
prepareRequestin interfaceSdkHttpClient
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable
-
clientName
public String clientName()
- Specified by:
clientNamein interfaceSdkHttpClient
-
-