| 程序包 | 说明 |
|---|---|
| org.apache.hc.client5.http |
Client component APIs common to all client transports
such as connection route information and resolution
as well as common HTTP method definitions and
exception classes.
|
| org.apache.hc.client5.http.async |
HTTP client APIs based on the asynchronous, event driven I/O model.
|
| org.apache.hc.client5.http.classic |
HTTP client APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.client5.http.impl | |
| 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.auth |
Standard and common HTTP authentication schemes.
|
| 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.io |
Client connection management functions based the classic
connection management APIs.
|
| org.apache.hc.client5.http.impl.nio |
Client connection management functions based the asynchronous
connection management APIs.
|
| org.apache.hc.client5.http.io |
Connection management APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.client5.http.nio |
Connection management APIs based on the asynchronous I/O model.
|
| org.apache.hc.client5.http.utils |
Client utility classes.
|
| org.apache.hc.core5.http |
Core HTTP transport component APIs.
|
| org.apache.hc.core5.http.impl |
Default implementations of core HTTP APIs.
|
| org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
| org.apache.hc.core5.http.impl.nio |
Default implementation of HTTP/1.1 transport based on
the asynchronous (non-blocking) I/O model.
|
| org.apache.hc.core5.http.io |
Core HTTP transport APIs based on the classic (blocking) I/O model.
|
| org.apache.hc.core5.http.nio.command |
Commands for HTTP transports based on asynchronous, event driven I/O model.
|
| org.apache.hc.core5.http.nio.ssl |
TLS protocol support.
|
| org.apache.hc.core5.http2.frame |
Core HTTP/2 data frame APIs.
|
| org.apache.hc.core5.http2.hpack |
HTTP/2 HPACK APIs.
|
| 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.command |
HTTP/2 specific commands for HTTP/2 transport based
on asynchronous, event driven I/O model.
|
| 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.
|
| org.apache.hc.core5.util |
Core utility classes.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ConnectExceptionSupport
Connect exception support methods.
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
AsyncExecRuntime
Execution runtime that provides access to the underlying connection endpoint and helps
manager its life cycle.
|
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
AsyncExecChain.Scheduler.scheduleExecution(HttpRequest request,
AsyncEntityProducer entityProducer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback asyncExecCallback,
TimeValue delay)
Schedules request re-execution of the given execution chain immediately or
after a delay.
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
ExecRuntime
Execution runtime that provides access to the underlying connection endpoint and helps
manager its life cycle.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ConnPoolSupport
Connection pooling support methods.
|
class |
CookieSpecSupport
Cookie support methods.
|
class |
ExecSupport
Request execution support methods.
|
class |
PrefixedIncrementingId
A thread safe incrementing identifier.
|
class |
RequestSupport
Protocol support methods.
|
class |
Wire |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AsyncConnectExec
Request execution handler in the asynchronous request execution chain
that is responsible for establishing connection to the target
origin server as specified by the current connection route.
|
class |
AsyncHttpRequestRetryExec
Request executor in the asynchronous request execution chain that is
responsible for making a decision whether a request that failed due to
an I/O exception or received a specific response from the target server should
be re-executed.
|
class |
AsyncProtocolExec
Request execution handler in the asynchronous request execution chain
that is responsible for implementation of HTTP specification requirements.
|
class |
AsyncRedirectExec
Request execution handler in the asynchronous request execution chain
responsible for handling of request redirects.
|
class |
H2AsyncMainClientExec
Usually the last HTTP/2 request execution handler in the asynchronous
request execution chain that is responsible for execution of
request / response exchanges with the opposite endpoint.
|
class |
InternalH2AsyncClient
Internal implementation of HTTP/2 only
CloseableHttpAsyncClient. |
class |
InternalHttpAsyncClient
Internal implementation of
CloseableHttpAsyncClient that can negotiate
the most optimal HTTP protocol version during during the TLS handshake
with ALPN extension if supported by the Java runtime. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
HttpAsyncClientBuilder.addCloseable(Closeable closeable)
Adds to the list of
Closeable resources to be managed by the client. |
protected void |
H2AsyncClientBuilder.addCloseable(Closeable closeable)
Adds to the list of
Closeable resources to be managed by the client. |
protected void |
HttpAsyncClientBuilder.customizeExecChain(NamedElementChain<AsyncExecChainHandler> execChainDefinition)
Request exec chain customization and extension.
|
protected void |
H2AsyncClientBuilder.customizeExecChain(NamedElementChain<AsyncExecChainHandler> execChainDefinition)
Request exec chain customization and extension.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AuthCacheKeeper
Utility class that implements commons aspects of the client side authentication cache keeping.
|
class |
AuthSchemeSupport |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
DigestScheme.getCnonce() |
String |
DigestScheme.getNonce() |
long |
DigestScheme.getNounceCount() |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ConnectExec
Request execution handler in the classic request execution chain
that is responsible for establishing connection to the target
origin server as specified by the current connection route.
|
class |
ContentCompressionExec
Request execution handler in the classic request execution chain
that is responsible for automatic response content decompression.
|
class |
HttpRequestRetryExec
Request executor in the request execution chain that is responsible for
making a decision whether a request that failed due to an I/O exception
or received a specific response from the target server should
be re-executed.
|
class |
MainClientExec
Usually the last request execution handler in the classic request execution
chain that is responsible for execution of request / response exchanges with
the opposite endpoint.
|
class |
ProtocolExec
Request execution handler in the classic request execution chain
that is responsible for implementation of HTTP specification requirements.
|
class |
RedirectExec
Request execution handler in the classic request execution chain
responsible for handling of request redirects.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
HttpClientBuilder.addCloseable(Closeable closeable)
Adds to the list of
Closeable resources to be managed by the client. |
protected void |
HttpClientBuilder.customizeExecChain(NamedElementChain<ExecChainHandler> execChainDefinition)
Request exec chain customization and extension.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
DefaultHttpClientConnectionOperator
Default implementation of
HttpClientConnectionOperator used as default in Http client,
when no instance provided by user to BasicHttpClientConnectionManager or PoolingHttpClientConnectionManager constructor. |
| 构造器和说明 |
|---|
PoolingHttpClientConnectionManager(HttpClientConnectionOperator httpClientConnectionOperator,
ManagedConnPool<HttpRoute,ManagedHttpClientConnection> pool,
HttpConnectionFactory<ManagedHttpClientConnection> connFactory) |
PoolingHttpClientConnectionManager(HttpClientConnectionOperator httpClientConnectionOperator,
PoolConcurrencyPolicy poolConcurrencyPolicy,
PoolReusePolicy poolReusePolicy,
TimeValue timeToLive,
HttpConnectionFactory<ManagedHttpClientConnection> connFactory) |
| 构造器和说明 |
|---|
PoolingAsyncClientConnectionManager(AsyncClientConnectionOperator connectionOperator,
PoolConcurrencyPolicy poolConcurrencyPolicy,
PoolReusePolicy poolReusePolicy,
TimeValue timeToLive) |
PoolingAsyncClientConnectionManager(ManagedConnPool<HttpRoute,ManagedAsyncClientConnection> pool,
AsyncClientConnectionOperator connectionOperator) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
HttpClientConnectionOperator
Connection operator that performs connection connect and upgrade operations.
|
interface |
ManagedHttpClientConnection
Represents a managed connection whose state and life cycle is managed by
a connection manager.
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
AsyncClientConnectionOperator
Connection operator that performs connection connect and upgrade operations.
|
interface |
ManagedAsyncClientConnection
Represents a managed asynchronous connection whose state and life cycle
is managed by a connection manager.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
Base64
Provide implementations of the Base64 conversion methods from Commons Codec, delegating to the Java Base64
implementation.
|
class |
Hex |
| 限定符和类型 | 类和说明 |
|---|---|
class |
RequestNotExecutedException
ConnectionClosedException subclass that signals requests cannot not be executed
due to the connection being closed. |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Http1StreamListener
HTTP/1.1 stream event listener.
|
class |
IncomingEntityDetails
HTTP message entity details.
|
class |
ServerSupport
HTTP Server support methods.
|
| 构造器和说明 |
|---|
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) |
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. |
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. |
HttpRequester(HttpRequestExecutor requestExecutor,
HttpProcessor httpProcessor,
ManagedConnPool<HttpHost,HttpClientConnection> connPool,
SocketConfig socketConfig,
HttpConnectionFactory<? extends HttpClientConnection> connectFactory,
SSLSocketFactory sslSocketFactory,
Callback<SSLParameters> sslSetupHandler,
SSLSessionVerifier sslSessionVerifier,
Resolver<HttpHost,InetSocketAddress> addressResolver)
Use
RequesterBootstrap to create instances of this class. |
HttpServer(int port,
HttpService httpService,
InetAddress ifAddress,
SocketConfig socketConfig,
ServerSocketFactory serverSocketFactory,
HttpConnectionFactory<? extends DefaultBHttpServerConnection> connectionFactory,
Callback<SSLParameters> sslSetupHandler,
ExceptionListener exceptionListener) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ClientHttp1StreamDuplexer
I/O event handler for events fired by
ProtocolIOSession that implements
client side HTTP/1.1 messaging protocol with full support for
duplexed message transmission and message pipelining. |
class |
ClientHttp1StreamDuplexerFactory
ClientHttp1StreamDuplexer factory. |
class |
ExpandableBuffer
A buffer that expand its capacity on demand.
|
interface |
HttpConnectionEventHandler
IOEventHandler that also exposes HttpConnection properties. |
class |
ServerHttp1StreamDuplexer
I/O event handler for events fired by
ProtocolIOSession that implements
server side HTTP/1.1 messaging protocol with full support for
duplexed message transmission and message pipelining. |
class |
ServerHttp1StreamDuplexerFactory
ServerHttp1StreamDuplexer factory. |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
ResponseOutOfOrderStrategy
Represents a strategy to determine how frequently the client should check for an out of order response.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
CommandSupport
Command utility methods. |
class |
ExecutableCommand
Abstract executable command that may need to do some cleaning up
in case of an failure and also optionally may want to cancel
the associated HTTP message exchange through
CancellableDependency. |
class |
RequestExecutionCommand
Request execution command.
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
TlsUpgradeCapable
Capability to upgrade to TLS.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
FramePrinter |
| 限定符和类型 | 类和说明 |
|---|---|
class |
HPackDecoder
HPACK decoder.
|
class |
HPackEncoder
HPACK encoder.
|
class |
Huffman
This Huffman codec implementation has been derived from Twitter HPack project
(https://github.com/twitter/hpack)
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ClientH2PrefaceHandler
I/O event handler for events fired by
ProtocolIOSession that implements
client side of the HTTP/2 protocol negotiation handshake always forcing the choice
of HTTP/2. |
class |
ClientH2StreamMultiplexer
I/O event handler for events fired by
ProtocolIOSession that implements
client side HTTP/2 messaging protocol with full support for
multiplexed message transmission. |
class |
ClientH2StreamMultiplexerFactory
ClientH2StreamMultiplexer factory. |
class |
ClientH2UpgradeHandler
Protocol upgrade handler that upgrades the underlying
ProtocolIOSession
to HTTP/2 in case of a successful protocol negotiation. |
class |
ClientHttp1UpgradeHandler
Protocol upgrade handler that upgrades the underlying
ProtocolIOSession
to HTTP/1.1 in case of a successful protocol negotiation or as a default fall-back. |
class |
ClientHttpProtocolNegotiationStarter
Client I/O event starter that prepares I/O sessions for an initial protocol handshake.
|
interface |
H2StreamListener
HTTP/2 stream event listener.
|
class |
HttpProtocolNegotiator |
class |
ServerH2PrefaceHandler
I/O event handler for events fired by
ProtocolIOSession that implements
server side of the HTTP/2 protocol negotiation handshake. |
class |
ServerH2StreamMultiplexer
I/O event handler for events fired by
ProtocolIOSession that implements
server side HTTP/2 messaging protocol with full support for
multiplexed message transmission. |
class |
ServerH2StreamMultiplexerFactory
ServerH2StreamMultiplexer factory. |
class |
ServerH2UpgradeHandler
Protocol upgrade handler that upgrades the underlying
ProtocolIOSession
to HTTP/2 in case of a successful protocol negotiation. |
class |
ServerHttp1UpgradeHandler
Protocol upgrade handler that upgrades the underlying
ProtocolIOSession
to HTTP/1.1 in case of a successful protocol negotiation or as a default fall-back. |
class |
ServerHttpProtocolNegotiationStarter
Server I/O event starter that prepares I/O sessions for an initial protocol handshake.
|
| 限定符和类型 | 方法和说明 |
|---|---|
H2ConnPool |
H2MultiplexingRequester.getConnPool() |
| 限定符和类型 | 类和说明 |
|---|---|
class |
PingCommand
HTTP/2 ping command.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
DefaultDisposalCallback<T extends SocketModalCloseable>
Default implementation of
DisposalCallback. |
interface |
DisposalCallback<T extends ModalCloseable>
Represents a customizable disposal strategy for
ModalCloseable instances. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
EndpointParameters
Endpoint initialization parameters
|
interface |
IOEventHandler
IOEventHandler interface is used by I/O reactors to handle I/O events for individual
I/O sessions.
|
interface |
IOEventHandlerFactory
Factory interface to create
IOEventHandler instances for the given connected endpoints. |
interface |
IOSession
IOSession interface represents a sequence of logically related data exchanges
between two end points.
|
interface |
IOSessionListener
IOSession event listener. |
interface |
ProtocolUpgradeHandler
Application protocol upgrade handler.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
SSLIOSession
SSLIOSession is a decorator class intended to transparently extend
an IOSession with transport layer security capabilities based on
the SSL/TLS protocol. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ReflectionUtils |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte |
TextUtils.castAsByte(int c)
Casts character to byte filtering non-visible and non-ASCII characters
before conversion
|
Copyright © 2023. All rights reserved.