| 程序包 | 说明 |
|---|---|
| com.aliyun.httpcomponent.httpclient.implementation.reactive | |
| org.apache.hc.client5.http.async |
HTTP client APIs based on the asynchronous, event driven I/O model.
|
| org.apache.hc.client5.http.async.methods |
Common HTTP methods and message handlers for the asynchronous I/O model.
|
| org.apache.hc.client5.http.impl.async |
Asynchronous HTTP client API implementation that supports both
HTTP/2 and HTTP/1.1 transport.
|
| org.apache.hc.client5.http.impl.classic |
Classic HTTP client API implementation that supports HTTP/1.1 transport
only.
|
| org.apache.hc.client5.http.impl.nio |
Client connection management functions based the asynchronous
connection management APIs.
|
| org.apache.hc.client5.http.nio |
Connection management APIs based on the asynchronous I/O model.
|
| org.apache.hc.core5.concurrent |
Core concurrency component APIs.
|
| org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
| org.apache.hc.core5.http.nio |
Core HTTP transport APIs based on the asynchronous, event driven I/O model.
|
| org.apache.hc.core5.http.nio.entity |
HTTP message entity APIs based on the asynchronous (non-blocking) I/O model.
|
| org.apache.hc.core5.http.nio.ssl |
TLS protocol support.
|
| org.apache.hc.core5.http.nio.support |
Support classes for the asynchronous I/O model.
|
| org.apache.hc.core5.http.nio.support.classic |
Support classes for the asynchronous I/O model that emulate
behavior of the classic (blocking) I/O model.
|
| org.apache.hc.core5.http2.impl.nio |
Default implementation of HTTP/2 transport based on
the asynchronous (non-blocking) I/O model.
|
| org.apache.hc.core5.http2.impl.nio.bootstrap |
HTTP/2 capable requester and server bootstrap.
|
| org.apache.hc.core5.http2.nio.pool |
HTTP/2 specific pool component APIs.
|
| org.apache.hc.core5.http2.ssl |
HTTP/2 specific TLS protocol support.
|
| org.apache.hc.core5.pool |
Client side connection pool component APIs.
|
| org.apache.hc.core5.reactor |
Event driven network communication APIs and components loosely based on
Doug Lea's
reactor pattern.
|
| org.apache.hc.core5.reactor.ssl |
TLS/SSL support for I/O reactors.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ReactiveResponseConsumer.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext httpContext,
FutureCallback<ReactiveApacheHttpResponse> resultCallback) |
| 限定符和类型 | 方法和说明 |
|---|---|
Cancellable |
AsyncExecRuntime.acquireEndpoint(String id,
HttpRoute route,
Object state,
HttpClientContext context,
FutureCallback<AsyncExecRuntime> callback)
Initiates operation to acquire a connection endpoint.
|
Cancellable |
AsyncExecRuntime.connectEndpoint(HttpClientContext context,
FutureCallback<AsyncExecRuntime> callback)
Initiates operation to connect the local endpoint to the initial hop (connection
target in case of a direct route or to the first proxy hop in case of a route
via a proxy or multiple proxies).
|
<T> Future<T> |
HttpAsyncClient.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback)
Initiates asynchronous HTTP request execution using the given context.
|
default void |
AsyncExecRuntime.upgradeTls(HttpClientContext context,
FutureCallback<AsyncExecRuntime> callback)
Upgrades transport security of the active connection by using the TLS security protocol.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
IgnoreCompleteExceptionFutureCallback<T> |
class |
IgnoreCompleteExceptonFutureCallback<T>
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AbstractBinResponseConsumer.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext context,
FutureCallback<T> resultCallback) |
void |
AbstractCharResponseConsumer.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext context,
FutureCallback<T> resultCallback) |
| 构造器和说明 |
|---|
IgnoreCompleteExceptionFutureCallback(FutureCallback<T> callback) |
IgnoreCompleteExceptonFutureCallback(FutureCallback<T> callback)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T> FutureTask<T> |
FutureRequestExecutionService.execute(ClassicHttpRequest request,
HttpContext context,
HttpClientResponseHandler<T> HttpClientResponseHandler,
FutureCallback<T> callback)
Schedule a request for execution.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
ConnectionInitiator connectionInitiator,
Timeout timeout,
Object attachment,
HttpContext context,
FutureCallback<AsyncConnectionEndpoint> callback) |
Future<IOSession> |
MultihomeConnectionInitiator.connect(NamedEndpoint remoteEndpoint,
SocketAddress remoteAddress,
SocketAddress localAddress,
Timeout connectTimeout,
Object attachment,
FutureCallback<IOSession> callback) |
Future<IOSession> |
MultihomeConnectionInitiator.connect(NamedEndpoint remoteEndpoint,
SocketAddress localAddress,
Timeout connectTimeout,
Object attachment,
FutureCallback<IOSession> callback) |
Future<AsyncConnectionEndpoint> |
PoolingAsyncClientConnectionManager.lease(String id,
HttpRoute route,
Object state,
Timeout requestTimeout,
FutureCallback<AsyncConnectionEndpoint> callback) |
void |
PoolingAsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
HttpContext context,
FutureCallback<AsyncConnectionEndpoint> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
Future<AsyncConnectionEndpoint> |
AsyncClientConnectionManager.connect(AsyncConnectionEndpoint endpoint,
ConnectionInitiator connectionInitiator,
Timeout connectTimeout,
Object attachment,
HttpContext context,
FutureCallback<AsyncConnectionEndpoint> callback)
Connects the endpoint to the initial hop (connection target in case
of a direct route or to the first proxy hop in case of a route via a proxy
or multiple proxies).
|
Future<ManagedAsyncClientConnection> |
AsyncClientConnectionOperator.connect(ConnectionInitiator connectionInitiator,
HttpHost host,
SocketAddress localAddress,
Timeout connectTimeout,
Object attachment,
FutureCallback<ManagedAsyncClientConnection> callback)
Initiates operation to create a connection to the remote endpoint using
the provided
ConnectionInitiator. |
default Future<ManagedAsyncClientConnection> |
AsyncClientConnectionOperator.connect(ConnectionInitiator connectionInitiator,
HttpHost host,
SocketAddress localAddress,
Timeout connectTimeout,
Object attachment,
HttpContext context,
FutureCallback<ManagedAsyncClientConnection> callback)
Initiates operation to create a connection to the remote endpoint using
the provided
ConnectionInitiator. |
<T> Future<T> |
AsyncConnectionEndpoint.execute(String id,
AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
<T> Future<T> |
AsyncConnectionEndpoint.execute(String id,
AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
<T> Future<T> |
AsyncConnectionEndpoint.execute(String id,
AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
<T> Future<T> |
AsyncConnectionEndpoint.execute(String id,
AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HttpContext context,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
Future<AsyncConnectionEndpoint> |
AsyncClientConnectionManager.lease(String id,
HttpRoute route,
Object state,
Timeout requestTimeout,
FutureCallback<AsyncConnectionEndpoint> callback)
Returns a
Future object which can be used to obtain
an AsyncConnectionEndpoint or to cancel the request by calling
Future.cancel(boolean). |
default void |
ManagedAsyncClientConnection.switchProtocol(String protocolId,
FutureCallback<ProtocolIOSession> callback)
Switches this I/O session to the application protocol with the given ID.
|
default void |
AsyncClientConnectionManager.upgrade(AsyncConnectionEndpoint endpoint,
Object attachment,
HttpContext context,
FutureCallback<AsyncConnectionEndpoint> callback)
Upgrades transport security of the given endpoint by using the TLS security protocol.
|
default void |
AsyncClientConnectionOperator.upgrade(ManagedAsyncClientConnection conn,
HttpHost host,
Object attachment,
HttpContext context,
FutureCallback<ManagedAsyncClientConnection> callback)
Upgrades transport security of the given managed connection
by using the TLS security protocol.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
CallbackContribution<T>
Convenience base class for
FutureCallbacks that contribute a result
of the operation to another FutureCallback. |
class |
FutureContribution<T>
Convenience base class for
FutureCallbacks that contribute a result
of the operation to another BasicFuture. |
| 构造器和说明 |
|---|
BasicFuture(FutureCallback<T> callback) |
CallbackContribution(FutureCallback<?> callback) |
ComplexFuture(FutureCallback<T> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AsyncRequestConsumer.consumeRequest(HttpRequest request,
EntityDetails entityDetails,
HttpContext context,
FutureCallback<T> resultCallback)
Triggered to signal receipt of a request message head.
|
void |
AsyncResponseConsumer.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext context,
FutureCallback<T> resultCallback)
Triggered to signal receipt of a response message head.
|
<T> Future<T> |
AsyncClientEndpoint.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
FutureCallback<T> callback)
Initiates a message exchange using the given request producer and response consumer.
|
<T> Future<T> |
AsyncClientEndpoint.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
HttpContext context,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
<T> Future<T> |
AsyncClientEndpoint.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HttpContext context,
FutureCallback<T> callback)
Initiates message exchange using the given request producer and response consumer.
|
void |
AsyncEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback)
Signals beginning of an incoming request entity stream.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DigestingEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback) |
void |
AbstractBinAsyncEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback) |
void |
DiscardingEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback) |
void |
AbstractCharAsyncEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback) |
void |
NoopEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<Void> resultCallback)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
TlsUpgradeCapable.tlsUpgrade(NamedEndpoint endpoint,
FutureCallback<ProtocolIOSession> callback) |
void |
BasicServerTlsStrategy.upgrade(TransportSecurityLayer tlsSession,
NamedEndpoint endpoint,
Object attachment,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback) |
default void |
TlsStrategy.upgrade(TransportSecurityLayer sessionLayer,
NamedEndpoint endpoint,
Object attachment,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback)
Secures current session layer with TLS.
|
void |
BasicClientTlsStrategy.upgrade(TransportSecurityLayer tlsSession,
NamedEndpoint endpoint,
Object attachment,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
BasicRequestConsumer.consumeRequest(HttpRequest request,
EntityDetails entityDetails,
HttpContext httpContext,
FutureCallback<Message<HttpRequest,T>> resultCallback) |
void |
AbstractAsyncRequesterConsumer.consumeRequest(HttpRequest request,
EntityDetails entityDetails,
HttpContext httpContext,
FutureCallback<T> resultCallback) |
void |
BasicResponseConsumer.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext httpContext,
FutureCallback<Message<HttpResponse,T>> resultCallback) |
void |
AbstractAsyncResponseConsumer.consumeResponse(HttpResponse response,
EntityDetails entityDetails,
HttpContext httpContext,
FutureCallback<T> resultCallback) |
| 构造器和说明 |
|---|
BasicClientExchangeHandler(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
FutureCallback<T> resultCallback) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AbstractClassicEntityConsumer.streamStart(EntityDetails entityDetails,
FutureCallback<T> resultCallback) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ServerHttp1UpgradeHandler.upgrade(ProtocolIOSession ioSession,
FutureCallback<ProtocolIOSession> callback) |
void |
ClientHttp1UpgradeHandler.upgrade(ProtocolIOSession ioSession,
FutureCallback<ProtocolIOSession> callback) |
void |
ClientH2UpgradeHandler.upgrade(ProtocolIOSession ioSession,
FutureCallback<ProtocolIOSession> callback) |
void |
ServerH2UpgradeHandler.upgrade(ProtocolIOSession ioSession,
FutureCallback<ProtocolIOSession> callback) |
| 构造器和说明 |
|---|
ClientH2PrefaceHandler(ProtocolIOSession ioSession,
ClientH2StreamMultiplexerFactory http2StreamHandlerFactory,
boolean strictALPNHandshake,
FutureCallback<ProtocolIOSession> resultCallback) |
HttpProtocolNegotiator(ProtocolIOSession ioSession,
FutureCallback<ProtocolIOSession> resultCallback) |
ServerH2PrefaceHandler(ProtocolIOSession ioSession,
ServerH2StreamMultiplexerFactory http2StreamHandlerFactory,
FutureCallback<ProtocolIOSession> resultCallback) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Future<AsyncClientEndpoint> |
H2AsyncRequester.doConnect(HttpHost host,
Timeout timeout,
Object attachment,
FutureCallback<AsyncClientEndpoint> callback) |
protected void |
H2AsyncRequester.doTlsUpgrade(ProtocolIOSession ioSession,
NamedEndpoint endpoint,
FutureCallback<ProtocolIOSession> callback) |
<T> Future<T> |
H2MultiplexingRequester.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
Timeout timeout,
HttpContext context,
FutureCallback<T> callback) |
<T> Future<T> |
H2MultiplexingRequester.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
Timeout timeout,
FutureCallback<T> callback) |
<T> Future<T> |
H2MultiplexingRequester.execute(AsyncRequestProducer requestProducer,
AsyncResponseConsumer<T> responseConsumer,
Timeout timeout,
HttpContext context,
FutureCallback<T> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Future<IOSession> |
H2ConnPool.connectSession(HttpHost namedEndpoint,
Timeout connectTimeout,
FutureCallback<IOSession> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
H2ServerTlsStrategy.upgrade(TransportSecurityLayer tlsSession,
NamedEndpoint endpoint,
Object attachment,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback) |
void |
ConscryptServerTlsStrategy.upgrade(TransportSecurityLayer tlsSession,
NamedEndpoint endpoint,
Object attachment,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback) |
void |
H2ClientTlsStrategy.upgrade(TransportSecurityLayer tlsSession,
NamedEndpoint endpoint,
Object attachment,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback) |
void |
ConscryptClientTlsStrategy.upgrade(TransportSecurityLayer tlsSession,
NamedEndpoint endpoint,
Object attachment,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
Future<PoolEntry<T,C>> |
LaxConnPool.lease(T route,
Object state,
Timeout requestTimeout,
FutureCallback<PoolEntry<T,C>> callback) |
Future<PoolEntry<T,C>> |
StrictConnPool.lease(T route,
Object state,
Timeout requestTimeout,
FutureCallback<PoolEntry<T,C>> callback) |
Future<PoolEntry<T,C>> |
ConnPool.lease(T route,
Object state,
Timeout requestTimeout,
FutureCallback<PoolEntry<T,C>> callback)
Attempts to lease a connection for the given route and with the given
state from the pool.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Future<IOSession> |
ConnectionInitiator.connect(NamedEndpoint remoteEndpoint,
SocketAddress remoteAddress,
SocketAddress localAddress,
Timeout timeout,
Object attachment,
FutureCallback<IOSession> callback)
Requests a connection to a remote host.
|
protected abstract Future<IOSession> |
AbstractIOSessionPool.connectSession(T namedEndpoint,
Timeout connectTimeout,
FutureCallback<IOSession> callback) |
Future<IOSession> |
AbstractIOSessionPool.getSession(T endpoint,
Timeout connectTimeout,
FutureCallback<IOSession> callback) |
Future<ListenerEndpoint> |
ConnectionAcceptor.listen(SocketAddress address,
FutureCallback<ListenerEndpoint> callback)
Opens a new listener endpoint with the given socket address.
|
Future<ListenerEndpoint> |
DefaultListeningIOReactor.listen(SocketAddress address,
FutureCallback<ListenerEndpoint> callback) |
default Future<ListenerEndpoint> |
ConnectionAcceptor.listen(SocketAddress address,
Object attachment,
FutureCallback<ListenerEndpoint> callback)
Opens a new listener endpoint with the given socket address.
|
Future<ListenerEndpoint> |
DefaultListeningIOReactor.listen(SocketAddress address,
Object attachment,
FutureCallback<ListenerEndpoint> callback) |
default void |
ProtocolIOSession.switchProtocol(String protocolId,
FutureCallback<ProtocolIOSession> callback)
Switches this I/O session to the application protocol with the given ID.
|
void |
ProtocolUpgradeHandler.upgrade(ProtocolIOSession ioSession,
FutureCallback<ProtocolIOSession> callback)
Upgrades application protocol of the given I/O session.
|
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
TransportSecurityLayer.startTls(SSLContext sslContext,
NamedEndpoint endpoint,
SSLBufferMode sslBufferMode,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback)
Starts TLS session over an existing network connection with the given SSL context.
|
| 构造器和说明 |
|---|
SSLIOSession(NamedEndpoint targetEndpoint,
IOSession session,
SSLMode sslMode,
SSLContext sslContext,
SSLBufferMode sslBufferMode,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier,
Timeout handshakeTimeout,
Callback<SSLIOSession> sessionStartCallback,
Callback<SSLIOSession> sessionEndCallback,
FutureCallback<SSLSession> resultCallback)
Creates new instance of
SSLIOSession class. |
Copyright © 2023. All rights reserved.