mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-17 07:26:47 +00:00
Removed deprecated methods
This commit is contained in:
parent
53e172553d
commit
24b3f71a8f
@ -93,22 +93,6 @@ public void setBody(final String bodyText, final ContentType contentType) {
|
||||
this.body = SimpleBody.create(bodyText, contentType);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #setBody(byte[], ContentType)}.
|
||||
*/
|
||||
@Deprecated
|
||||
public void setBodyBytes(final byte[] bodyBytes, final ContentType contentType) {
|
||||
this.body = SimpleBody.create(bodyBytes, contentType);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #setBody(String, ContentType)}.
|
||||
*/
|
||||
@Deprecated
|
||||
public void setBodyText(final String bodyText, final ContentType contentType) {
|
||||
this.body = SimpleBody.create(bodyText, contentType);
|
||||
}
|
||||
|
||||
public SimpleBody getBody() {
|
||||
return body;
|
||||
}
|
||||
|
@ -105,22 +105,6 @@ public void setBody(final String bodyText, final ContentType contentType) {
|
||||
this.body = SimpleBody.create(bodyText, contentType);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #setBody(byte[], ContentType)}.
|
||||
*/
|
||||
@Deprecated
|
||||
public void setBodyBytes(final byte[] bodyBytes, final ContentType contentType) {
|
||||
this.body = SimpleBody.create(bodyBytes, contentType);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #setBody(String, ContentType)}.
|
||||
*/
|
||||
@Deprecated
|
||||
public void setBodyText(final String bodyText, final ContentType contentType) {
|
||||
this.body = SimpleBody.create(bodyText, contentType);
|
||||
}
|
||||
|
||||
public SimpleBody getBody() {
|
||||
return body;
|
||||
}
|
||||
|
@ -45,7 +45,6 @@
|
||||
import org.apache.hc.core5.http.nio.AsyncResponseConsumer;
|
||||
import org.apache.hc.core5.http.nio.HandlerFactory;
|
||||
import org.apache.hc.core5.http.protocol.HttpContext;
|
||||
import org.apache.hc.core5.io.CloseMode;
|
||||
import org.apache.hc.core5.io.ModalCloseable;
|
||||
import org.apache.hc.core5.reactor.IOReactorStatus;
|
||||
import org.apache.hc.core5.util.Args;
|
||||
@ -67,14 +66,6 @@ public abstract class CloseableHttpAsyncClient implements HttpAsyncClient, Modal
|
||||
|
||||
public abstract void initiateShutdown();
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #close(CloseMode)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void shutdown(final CloseMode closeMode) {
|
||||
close(closeMode);
|
||||
}
|
||||
|
||||
protected abstract <T> Future<T> doExecute(
|
||||
final HttpHost target,
|
||||
final AsyncRequestProducer requestProducer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user