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 ofSdkHttpClient
that 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 interface
ApacheHttpClient.Builder
Builder for creating an instance ofSdkHttpClient
.
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApacheHttpClient.Builder
builder()
String
clientName()
void
close()
static SdkHttpClient
create()
Create aApacheHttpClient
with the default propertiesExecutableHttpRequest
prepareRequest(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 aApacheHttpClient
with the default properties- Returns:
- an
ApacheHttpClient
-
prepareRequest
public ExecutableHttpRequest prepareRequest(HttpExecuteRequest request)
- Specified by:
prepareRequest
in interfaceSdkHttpClient
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSdkAutoCloseable
-
clientName
public String clientName()
- Specified by:
clientName
in interfaceSdkHttpClient
-
-