| 程序包 | 说明 |
|---|---|
| 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.nio |
Client connection management functions based the asynchronous
connection management APIs.
|
| org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
| org.apache.hc.core5.http.nio.command |
Commands for HTTP transports based on asynchronous, event driven 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.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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
HttpAsyncClientBuilder |
HttpAsyncClientBuilder.setIoSessionDecorator(Decorator<IOSession> ioSessionDecorator)
|
H2AsyncClientBuilder |
H2AsyncClientBuilder.setIoSessionDecorator(Decorator<IOSession> ioSessionDecorator)
|
| 限定符和类型 | 方法和说明 |
|---|---|
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<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<IOSession> |
AsyncRequester.requestSession(HttpHost host,
Timeout timeout,
Object attachment,
FutureCallback<IOSession> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
Future<IOSession> |
AsyncRequester.requestSession(HttpHost host,
Timeout timeout,
Object attachment,
FutureCallback<IOSession> callback) |
AsyncRequesterBootstrap |
AsyncRequesterBootstrap.setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)
|
AsyncServerBootstrap |
AsyncServerBootstrap.setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)
|
| 构造器和说明 |
|---|
AsyncRequester(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback,
Resolver<HttpHost,InetSocketAddress> addressResolver) |
AsyncRequester(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback,
Resolver<HttpHost,InetSocketAddress> addressResolver) |
AsyncServer(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback) |
AsyncServer(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback) |
HttpAsyncRequester(IOReactorConfig ioReactorConfig,
IOEventHandlerFactory eventHandlerFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
ManagedConnPool<HttpHost,IOSession> connPool)
Use
AsyncRequesterBootstrap to create instances of this class. |
HttpAsyncRequester(IOReactorConfig ioReactorConfig,
IOEventHandlerFactory eventHandlerFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
ManagedConnPool<HttpHost,IOSession> connPool)
Use
AsyncRequesterBootstrap to create instances of this class. |
HttpAsyncRequester(IOReactorConfig ioReactorConfig,
IOEventHandlerFactory eventHandlerFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
ManagedConnPool<HttpHost,IOSession> connPool,
TlsStrategy tlsStrategy,
Timeout handshakeTimeout)
Use
AsyncRequesterBootstrap to create instances of this class. |
HttpAsyncRequester(IOReactorConfig ioReactorConfig,
IOEventHandlerFactory eventHandlerFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
ManagedConnPool<HttpHost,IOSession> connPool,
TlsStrategy tlsStrategy,
Timeout handshakeTimeout)
Use
AsyncRequesterBootstrap to create instances of this class. |
HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener)
Use
AsyncServerBootstrap to create instances of this class. |
HttpAsyncServer(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
String canonicalName)
Use
AsyncServerBootstrap to create instances of this class. |
| 限定符和类型 | 字段和说明 |
|---|---|
static Callback<IOSession> |
ShutdownCommand.GRACEFUL_IMMEDIATE_CALLBACK |
static Callback<IOSession> |
ShutdownCommand.GRACEFUL_NORMAL_CALLBACK |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
CommandSupport.cancelCommands(IOSession ioSession)
Cancels all pending session
Commands. |
static void |
CommandSupport.failCommands(IOSession ioSession,
Exception ex)
Fails all pending session
Commands. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpProtocolNegotiator.connected(IOSession session) |
void |
ServerH2PrefaceHandler.connected(IOSession session) |
void |
ClientH2PrefaceHandler.connected(IOSession session) |
void |
HttpProtocolNegotiator.disconnected(IOSession session) |
void |
HttpProtocolNegotiator.exception(IOSession session,
Exception cause) |
void |
HttpProtocolNegotiator.inputReady(IOSession session,
ByteBuffer src) |
void |
ServerH2PrefaceHandler.inputReady(IOSession session,
ByteBuffer src) |
void |
ClientH2PrefaceHandler.inputReady(IOSession session,
ByteBuffer src) |
void |
HttpProtocolNegotiator.outputReady(IOSession session) |
void |
ServerH2PrefaceHandler.outputReady(IOSession session) |
void |
ClientH2PrefaceHandler.outputReady(IOSession session) |
void |
HttpProtocolNegotiator.timeout(IOSession session,
Timeout timeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
H2MultiplexingRequesterBootstrap |
H2MultiplexingRequesterBootstrap.setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)
|
H2RequesterBootstrap |
H2RequesterBootstrap.setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)
|
H2ServerBootstrap |
H2ServerBootstrap.setIOSessionDecorator(Decorator<IOSession> ioSessionDecorator)
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected Future<IOSession> |
H2ConnPool.connectSession(HttpHost namedEndpoint,
Timeout connectTimeout,
FutureCallback<IOSession> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
H2ConnPool.closeSession(IOSession ioSession,
CloseMode closeMode) |
protected void |
H2ConnPool.validateSession(IOSession ioSession,
Callback<Boolean> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Future<IOSession> |
H2ConnPool.connectSession(HttpHost namedEndpoint,
Timeout connectTimeout,
FutureCallback<IOSession> callback) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
ProtocolIOSession
TLS capable, protocol upgradable
IOSession. |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract void |
AbstractIOSessionPool.closeSession(IOSession ioSession,
CloseMode closeMode) |
void |
IOEventHandler.connected(IOSession session)
Triggered after the given session has been just created.
|
void |
IOSessionListener.connected(IOSession session) |
void |
IOEventHandler.disconnected(IOSession session)
Triggered when the given session has been terminated.
|
void |
IOSessionListener.disconnected(IOSession session) |
void |
IOEventHandler.exception(IOSession session,
Exception cause)
Triggered when the given session throws a exception.
|
void |
IOSessionListener.exception(IOSession session,
Exception ex) |
void |
IOSessionListener.inputReady(IOSession session) |
void |
IOEventHandler.inputReady(IOSession session,
ByteBuffer src)
Triggered when the given session has input pending.
|
void |
IOEventHandler.outputReady(IOSession session)
Triggered when the given session is ready for output.
|
void |
IOSessionListener.outputReady(IOSession session) |
void |
IOSessionListener.startTls(IOSession session) |
void |
IOSessionListener.timeout(IOSession session) |
void |
IOEventHandler.timeout(IOSession session,
Timeout timeout)
Triggered when the given session has timed out.
|
protected abstract void |
AbstractIOSessionPool.validateSession(IOSession ioSession,
Callback<Boolean> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
void |
AbstractIOSessionPool.enumAvailable(Callback<IOSession> callback) |
Future<IOSession> |
AbstractIOSessionPool.getSession(T endpoint,
Timeout connectTimeout,
FutureCallback<IOSession> callback) |
| 构造器和说明 |
|---|
DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig config,
Callback<IOSession> sessionShutdownCallback) |
DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
ThreadFactory threadFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback) |
DefaultConnectingIOReactor(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
ThreadFactory threadFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback) |
DefaultListeningIOReactor(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig config,
Callback<IOSession> sessionShutdownCallback)
Creates an instance of DefaultListeningIOReactor with the given configuration.
|
DefaultListeningIOReactor(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
ThreadFactory dispatchThreadFactory,
ThreadFactory listenerThreadFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback)
Creates an instance of DefaultListeningIOReactor with the given configuration.
|
DefaultListeningIOReactor(IOEventHandlerFactory eventHandlerFactory,
IOReactorConfig ioReactorConfig,
ThreadFactory dispatchThreadFactory,
ThreadFactory listenerThreadFactory,
Decorator<IOSession> ioSessionDecorator,
Callback<Exception> exceptionCallback,
IOSessionListener sessionListener,
Callback<IOSession> sessionShutdownCallback)
Creates an instance of DefaultListeningIOReactor with the given configuration.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
SSLIOSession
SSLIOSession is a decorator class intended to transparently extend
an IOSession with transport layer security capabilities based on
the SSL/TLS protocol. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SSLIOSession.beginHandshake(IOSession protocolSession) |
| 构造器和说明 |
|---|
SSLIOSession(NamedEndpoint targetEndpoint,
IOSession session,
SSLMode sslMode,
SSLContext sslContext,
SSLBufferMode sslBufferMode,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier,
Callback<SSLIOSession> sessionStartCallback,
Callback<SSLIOSession> sessionEndCallback,
Timeout connectTimeout)
Creates new instance of
SSLIOSession class. |
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.