Removed deprecated methods
This commit is contained in:
parent
53e172553d
commit
24b3f71a8f
|
@ -93,22 +93,6 @@ public final class SimpleHttpRequest extends ConfigurableHttpRequest {
|
|||
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 final class SimpleHttpResponse extends BasicHttpResponse {
|
|||
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.AsyncRequestProducer;
|
|||
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…
Reference in New Issue