Package | Description |
---|---|
org.apache.hc.core5.http.impl.bootstrap |
HTTP/1.1 requester and server bootstrap.
|
org.apache.hc.core5.http.io.ssl | |
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.entity |
HTTP message entity APIs based on the asynchronous (non-blocking) I/O model.
|
org.apache.hc.core5.http.nio.support |
Support classes for the asynchronous 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.
|
Modifier and Type | Method and Description |
---|---|
AsyncRequesterBootstrap |
AsyncRequesterBootstrap.setExceptionCallback(Callback<Exception> exceptionCallback)
|
AsyncServerBootstrap |
AsyncServerBootstrap.setExceptionCallback(Callback<Exception> exceptionCallback)
|
ServerBootstrap |
ServerBootstrap.setSslSetupHandler(Callback<SSLParameters> sslSetupHandler)
Assigns
Callback for SSLParameters . |
RequesterBootstrap |
RequesterBootstrap.setSslSetupHandler(Callback<SSLParameters> sslSetupHandler)
Assigns
Callback for SSLParameters . |
Constructor and Description |
---|
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. |
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) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultTlsSetupHandler
Default TLS session setup handler.
|
Modifier and Type | Field and Description |
---|---|
static Callback<IOSession> |
ShutdownCommand.GRACEFUL_IMMEDIATE_CALLBACK |
static Callback<IOSession> |
ShutdownCommand.GRACEFUL_NORMAL_CALLBACK |
Modifier and Type | Method and Description |
---|---|
static AsyncEntityProducer |
AsyncEntityProducers.createBinary(Callback<StreamChannel<ByteBuffer>> callback,
ContentType contentType) |
static AsyncEntityProducer |
AsyncEntityProducers.createBinary(Callback<StreamChannel<ByteBuffer>> callback,
ContentType contentType,
Header... trailers) |
static AsyncEntityProducer |
AsyncEntityProducers.createText(Callback<StreamChannel<CharBuffer>> callback,
ContentType contentType) |
static AsyncEntityProducer |
AsyncEntityProducers.createText(Callback<StreamChannel<CharBuffer>> callback,
ContentType contentType,
Header... trailers) |
Constructor and Description |
---|
AsyncServerFilterChainExchangeHandlerFactory(AsyncServerFilterChainElement filterChain,
Callback<Exception> exceptionCallback) |
BasicAsyncServerExpectationDecorator(AsyncServerExchangeHandler handler,
Callback<Exception> exceptionCallback) |
Modifier and Type | Method and Description |
---|---|
void |
StrictConnPool.enumAvailable(Callback<PoolEntry<T,C>> callback)
Enumerates all available connections.
|
void |
LaxConnPool.enumAvailable(Callback<PoolEntry<T,C>> callback) |
void |
StrictConnPool.enumLeased(Callback<PoolEntry<T,C>> callback)
Enumerates all leased connections.
|
void |
LaxConnPool.enumLeased(Callback<PoolEntry<T,C>> callback) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractIOSessionPool.enumAvailable(Callback<IOSession> callback) |
protected abstract void |
AbstractIOSessionPool.validateSession(IOSession ioSession,
Callback<Boolean> callback) |
Constructor and Description |
---|
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.
|
Constructor and Description |
---|
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,
Callback<SSLIOSession> sessionStartCallback,
Callback<SSLIOSession> sessionEndCallback,
Timeout connectTimeout)
Creates new instance of
SSLIOSession class. |
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.