| 程序包 | 说明 |
|---|---|
| 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.impl | |
| org.apache.hc.client5.http.impl.nio |
Client connection management functions based the asynchronous
connection management APIs.
|
| org.apache.hc.core5.http |
Core HTTP transport component APIs.
|
| org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
| org.apache.hc.core5.http.nio.ssl |
TLS protocol support.
|
| org.apache.hc.core5.http2.impl.nio.bootstrap |
HTTP/2 capable requester and server bootstrap.
|
| org.apache.hc.core5.http2.ssl |
HTTP/2 specific TLS protocol support.
|
| org.apache.hc.core5.net |
Core network component APIs and utilities.
|
| 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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
NamedEndpoint |
HttpHostConnectException.getHost() |
NamedEndpoint |
ConnectTimeoutException.getHost() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ConnectTimeoutException |
ConnectExceptionSupport.createConnectTimeoutException(IOException cause,
NamedEndpoint namedEndpoint,
InetAddress... remoteAddresses) |
static HttpHostConnectException |
ConnectExceptionSupport.createHttpHostConnectException(IOException cause,
NamedEndpoint namedEndpoint,
InetAddress... remoteAddresses) |
static IOException |
ConnectExceptionSupport.enhance(IOException cause,
NamedEndpoint namedEndpoint,
InetAddress... remoteAddresses) |
default int |
SchemePortResolver.resolve(String scheme,
NamedEndpoint endpoint)
Returns the actual port for the host based on the protocol scheme.
|
| 构造器和说明 |
|---|
ConnectTimeoutException(String message,
NamedEndpoint namedEndpoint) |
HttpHostConnectException(String message,
NamedEndpoint namedEndpoint) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
DefaultSchemePortResolver.resolve(String scheme,
NamedEndpoint endpoint) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
HttpHost
Component that holds all details needed to describe an HTTP connection
to a host.
|
| 构造器和说明 |
|---|
HttpHost(String scheme,
NamedEndpoint namedEndpoint) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
HttpAsyncRequester.doTlsUpgrade(ProtocolIOSession ioSession,
NamedEndpoint endpoint,
FutureCallback<ProtocolIOSession> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
H2AsyncRequester.doTlsUpgrade(ProtocolIOSession ioSession,
NamedEndpoint endpoint,
FutureCallback<ProtocolIOSession> 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) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Host
Component that holds all details needed to describe a network connection
to a host.
|
class |
URIAuthority
Represents authority component of request
URI. |
| 限定符和类型 | 方法和说明 |
|---|---|
URIBuilder |
URIBuilder.setAuthority(NamedEndpoint authority)
Sets the authority.
|
| 构造器和说明 |
|---|
URIAuthority(NamedEndpoint namedEndpoint) |
URIAuthority(String userInfo,
NamedEndpoint endpoint) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
EndpointParameters
Endpoint initialization parameters
|
| 限定符和类型 | 方法和说明 |
|---|---|
NamedEndpoint |
ProtocolIOSession.getInitialEndpoint() |
| 限定符和类型 | 方法和说明 |
|---|---|
Future<IOSession> |
ConnectionInitiator.connect(NamedEndpoint remoteEndpoint,
SocketAddress remoteAddress,
SocketAddress localAddress,
Timeout timeout,
Object attachment,
FutureCallback<IOSession> callback)
Requests a connection to a remote host.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SSLSessionInitializer.initialize(NamedEndpoint endpoint,
SSLEngine sslEngine)
Triggered when the SSL connection is being initialized.
|
void |
TransportSecurityLayer.startTls(SSLContext sslContext,
NamedEndpoint endpoint,
SSLBufferMode sslBufferMode,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier,
Timeout handshakeTimeout)
Starts TLS session over an existing network connection with the given SSL context.
|
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.
|
TlsDetails |
SSLSessionVerifier.verify(NamedEndpoint endpoint,
SSLEngine sslEngine)
Triggered when the SSL connection has been established and initial SSL
handshake has been successfully completed.
|
| 构造器和说明 |
|---|
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.