Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RESTEASY-3473] Deprecate the public facing Apache HTTP Client API's … #4100

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public interface SimpleClient
</para>
<para>

RESTEasy has a simple API based on Apache HttpClient. Generate a proxy, then invoke methods on the
RESTEasy has a simple API to generate a proxy, then invoke methods on the
proxy. The invoked method gets translated to an HTTP request based on how the method was annotated
and posted to the server. Here's how to set this up:
</para>
Expand Down Expand Up @@ -511,6 +511,13 @@ name: b

<section id="transport_layer">
<title>Apache HTTP Client 4.x and other backends</title>
<warning>
<para>
<emphasis role="bold">Note: </emphasis> The Apache HTTP Client support is deprecated in RESTEasy. The exposed
API's will eventually be removed. However, it's still the default client implementation as we prepare for
a replacement backing HTTP client.
</para>
</warning>

<para>
Network communication between the client and server is handled by default in RESTEasy.
Expand Down Expand Up @@ -556,11 +563,11 @@ name: b
</thead>
<tbody>
<row>
<entry>ApacheHttpClient43Engine</entry>
<entry>ApacheHttpClient43Engine (deprecated)</entry>
<entry>Uses HttpComponents HttpClient 4.3+</entry>
</row>
<row>
<entry>ApacheHttpAsyncClient4Engine</entry>
<entry>ApacheHttpAsyncClient4Engine (deprecated)</entry>
<entry>Uses HttpComponents HttpAsyncClient</entry>
</row>
<row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@
* </ul>
*
* @author Markus Kull
*
* @deprecated This will be removed in a future release as the underlying default implementation of the
* {@link org.jboss.resteasy.client.jaxrs.ClientHttpEngine} will be replaced.
*/
@Deprecated(forRemoval = true, since = "6.2")
public class ApacheHttpAsyncClient4Engine implements AsyncClientHttpEngine, Closeable {
protected final CloseableHttpAsyncClient client;
protected final boolean closeHttpClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

/**
* An Apache HTTP engine for use with the new Builder Config style.
*
* @deprecated This will be removed in a future release as the underlying default implementation of the
* {@link org.jboss.resteasy.client.jaxrs.ClientHttpEngine} will be replaced.
*/
@Deprecated(forRemoval = true, since = "6.2")
public class ApacheHttpClient43Engine extends ManualClosingApacheHttpClient43Engine {
public ApacheHttpClient43Engine() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
import org.jboss.resteasy.client.jaxrs.ClientHttpEngine;
import org.jboss.resteasy.spi.config.SizeUnit;

/**
*
* @deprecated This will be removed in a future release as the underlying default implementation of the
* {@link org.jboss.resteasy.client.jaxrs.ClientHttpEngine} will be replaced.
*/
@Deprecated(forRemoval = true, since = "6.2")
public interface ApacheHttpClientEngine extends ClientHttpEngine {
/**
* Enumeration to represent memory units.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
import org.jboss.resteasy.client.jaxrs.spi.ClientConfigProvider;
import org.jboss.resteasy.spi.PriorityServiceLoader;

/**
*
* @deprecated This will be removed in a future release as the underlying default implementation of the
* {@link org.jboss.resteasy.client.jaxrs.ClientHttpEngineBuilder} will be replaced.
*/
@Deprecated(forRemoval = true, since = "6.2")
public class ClientHttpEngineBuilder43 implements ClientHttpEngineBuilder {

private ResteasyClientBuilder that;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.apache.http.protocol.HttpContext;

@Deprecated(forRemoval = true, since = "6.2")
public interface HttpContextProvider {
HttpContext getContext();
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@

/**
* An Apache HTTP engine for use with the new Builder Config style.
*
* @deprecated This will be removed in a future release as the underlying default implementation of the
* {@link org.jboss.resteasy.client.jaxrs.ClientHttpEngine} will be replaced.
*/
@Deprecated(forRemoval = true, since = "6.2")
public class ManualClosingApacheHttpClient43Engine implements ApacheHttpClientEngine {
private static class CleanupAction implements Runnable {
private final AtomicBoolean closed;
Expand Down