File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed
apache-client/src/main/java/software/amazon/awssdk/http/apache
apache5-client/src/main/java/software/amazon/awssdk/http/apache5 Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 92
92
import software .amazon .awssdk .utils .Validate ;
93
93
94
94
/**
95
- * An implementation of {@link SdkHttpClient} that uses Apache HTTP client to communicate with the service. This is the most
96
- * powerful synchronous client that adds an extra dependency and additional startup latency in exchange for more functionality,
97
- * like support for HTTP proxies.
95
+ *
96
+ * An implementation of {@link SdkHttpClient} that uses Apache HttpClient 4.x to communicate with the service. This is a
97
+ * full-featured synchronous client that adds an extra dependency and higher startup latency compared to
98
+ * <a href="https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/http-configuration-url.html">UrlConnectionHttpClient</a>
99
+ * in exchange for more functionality, like support for HTTP proxies.
98
100
*
99
101
* <p>See software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient for an alternative implementation.</p>
100
102
*
Original file line number Diff line number Diff line change 101
101
import software .amazon .awssdk .utils .Validate ;
102
102
103
103
/**
104
- * An implementation of {@link SdkHttpClient} that uses Apache5 HTTP client to communicate with the service. This is the most
105
- * powerful synchronous client that adds an extra dependency and additional startup latency in exchange for more functionality,
106
- * like support for HTTP proxies.
104
+ * An implementation of {@link SdkHttpClient} that uses Apache HttpClient 5.x to communicate with the service. This is a
105
+ * full-featured synchronous client that adds an extra dependency and higher startup latency compared to
106
+ * <a href="https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/http-configuration-url.html">UrlConnectionHttpClient</a>
107
+ * in exchange for more functionality, like support for HTTP proxies.
107
108
*
108
- * <p>See software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient for an alternative implementation.</p>
109
+ * <p>This client uses Apache HttpClient 5.x, which provides the following
110
+ * improvements over the Apache HttpClient 4.5.x based client:</p>
111
+ * <ul>
112
+ * <li>Modern Java ecosystem compatibility including virtual thread support for Java 21</li>
113
+ * <li>Active maintenance with regular security updates</li>
114
+ * <li>Enhanced logging flexibility through SLF4J (replacing problematic JCL dependencies)</li>
115
+ * </ul>
116
+ * <p><b>Note:</b> Performance characteristics between Apache 4.5.x and 5.x clients are similar.</p>
117
+ * <p>See
118
+ * <a href="https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/http-configuration-url.html">UrlConnectionHttpClient</a>
119
+ * for a lighter-weight alternative implementation.</p>
109
120
*
110
121
* <p>This can be created via {@link #builder()}</p>
111
122
*/
123
+
112
124
@ SdkPreviewApi
113
125
@ SdkPublicApi
114
126
public final class Apache5HttpClient implements SdkHttpClient {
You can’t perform that action at this time.
0 commit comments