diff --git a/.changes/next-release/deprecation-ApacheHTTPClient-43c0545.json b/.changes/next-release/deprecation-ApacheHTTPClient-43c0545.json new file mode 100644 index 000000000000..59ba3bc4ebfa --- /dev/null +++ b/.changes/next-release/deprecation-ApacheHTTPClient-43c0545.json @@ -0,0 +1,6 @@ +{ + "type": "deprecation", + "category": "Apache HTTP Client", + "contributor": "", + "description": "`apache-client` is now deprecated in favor of `apache5-client`. [Apache HttpClient 4.x](https://hc.apache.org/status.html) is in maintenance mode, receiving fixes only for major defects and security issues." +} diff --git a/http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/ApacheHttpClient.java b/http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/ApacheHttpClient.java index 6013c07bdaa8..04c1076176c8 100644 --- a/http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/ApacheHttpClient.java +++ b/http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/ApacheHttpClient.java @@ -101,8 +101,13 @@ *
See software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient for an alternative implementation.
* *This can be created via {@link #builder()}
+ * + * @deprecated Apache 4.x is in maintenance mode. Users are encouraged to switch to the + * Apache 5 HTTP Client + * which is feature compatible with this client. */ @SdkPublicApi +@Deprecated public final class ApacheHttpClient implements SdkHttpClient { public static final String CLIENT_NAME = "Apache"; @@ -345,6 +350,9 @@ public String clientName() { * .socketTimeout(Duration.ofSeconds(10)) * .build(); * + * @deprecated Apache 4.x is in maintenance mode. Users are encouraged to switch to the + * Apache 5 HTTP Client + * which is feature compatible with this client. */ public interface Builder extends SdkHttpClient.Builder