Uses of Interface
org.apache.hc.core5.function.Callback
Packages that use Callback
Package
Description
HTTP/1.1 requester and server bootstrap.
Commands for HTTP transports based on asynchronous, event driven I/O model.
HTTP message entity APIs based on the asynchronous (non-blocking) I/O model.
Support classes for the asynchronous I/O model.
HTTP/2 capable requester and server bootstrap.
HTTP/2 specific pool component APIs.
Support classes for HTTP/2 asynchronous transport.
Client side connection pool component APIs.
Event driven network communication APIs and components loosely based on
Doug Lea's
reactor pattern.
TLS/SSL support for I/O reactors.
-
Uses of Callback in org.apache.hc.core5.http.impl.bootstrap
Fields in org.apache.hc.core5.http.impl.bootstrap declared as CallbackModifier and TypeFieldDescriptionAsyncRequesterBootstrap.exceptionCallback
AsyncServerBootstrap.exceptionCallback
private final Callback
<SSLParameters> HttpRequester.sslSetupHandler
private final Callback
<SSLParameters> HttpServer.sslSetupHandler
private Callback
<SSLParameters> RequesterBootstrap.sslSetupHandler
private Callback
<SSLParameters> ServerBootstrap.sslSetupHandler
Methods in org.apache.hc.core5.http.impl.bootstrap with parameters of type CallbackModifier and TypeMethodDescriptionfinal AsyncRequesterBootstrap
AsyncRequesterBootstrap.setExceptionCallback
(Callback<Exception> exceptionCallback) final AsyncServerBootstrap
AsyncServerBootstrap.setExceptionCallback
(Callback<Exception> exceptionCallback) final RequesterBootstrap
RequesterBootstrap.setSslSetupHandler
(Callback<SSLParameters> sslSetupHandler) AssignsCallback
forSSLParameters
.final ServerBootstrap
ServerBootstrap.setSslSetupHandler
(Callback<SSLParameters> sslSetupHandler) AssignsCallback
forSSLParameters
.Constructors in org.apache.hc.core5.http.impl.bootstrap with parameters of type CallbackModifierConstructorDescriptionAsyncRequester
(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) UseAsyncRequesterBootstrap
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) UseAsyncRequesterBootstrap
to create instances of this class.HttpAsyncServer
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener) UseAsyncServerBootstrap
to create instances of this class.HttpAsyncServer
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, String canonicalName) UseAsyncServerBootstrap
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) UseRequesterBootstrap
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) -
Uses of Callback in org.apache.hc.core5.http.io.ssl
Classes in org.apache.hc.core5.http.io.ssl that implement CallbackModifier and TypeClassDescriptionfinal class
Default TLS session setup handler. -
Uses of Callback in org.apache.hc.core5.http.nio.command
Fields in org.apache.hc.core5.http.nio.command declared as CallbackModifier and TypeFieldDescriptionShutdownCommand.GRACEFUL_IMMEDIATE_CALLBACK
ShutdownCommand.GRACEFUL_NORMAL_CALLBACK
Methods in org.apache.hc.core5.http.nio.command that return CallbackModifier and TypeMethodDescriptionShutdownCommand.createIOSessionCallback
(Command.Priority priority) -
Uses of Callback in org.apache.hc.core5.http.nio.entity
Methods in org.apache.hc.core5.http.nio.entity with parameters of type CallbackModifier and TypeMethodDescriptionstatic 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) -
Uses of Callback in org.apache.hc.core5.http.nio.support
Fields in org.apache.hc.core5.http.nio.support declared as CallbackModifier and TypeFieldDescriptionAsyncServerFilterChainExchangeHandlerFactory.exceptionCallback
BasicAsyncServerExpectationDecorator.exceptionCallback
Constructors in org.apache.hc.core5.http.nio.support with parameters of type CallbackModifierConstructorDescriptionAsyncServerFilterChainExchangeHandlerFactory
(AsyncServerFilterChainElement filterChain, Callback<Exception> exceptionCallback) BasicAsyncServerExpectationDecorator
(AsyncServerExchangeHandler handler, Callback<Exception> exceptionCallback) -
Uses of Callback in org.apache.hc.core5.http2.impl.nio.bootstrap
Fields in org.apache.hc.core5.http2.impl.nio.bootstrap declared as CallbackModifier and TypeFieldDescriptionH2MultiplexingRequesterBootstrap.exceptionCallback
H2RequesterBootstrap.exceptionCallback
H2ServerBootstrap.exceptionCallback
Methods in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type CallbackModifier and TypeMethodDescriptionH2MultiplexingRequesterBootstrap.setExceptionCallback
(Callback<Exception> exceptionCallback) final H2RequesterBootstrap
H2RequesterBootstrap.setExceptionCallback
(Callback<Exception> exceptionCallback) final H2ServerBootstrap
H2ServerBootstrap.setExceptionCallback
(Callback<Exception> exceptionCallback) Constructors in org.apache.hc.core5.http2.impl.nio.bootstrap with parameters of type CallbackModifierConstructorDescriptionH2AsyncRequester
(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool) UseH2RequesterBootstrap
to create instances of this class.H2AsyncRequester
(HttpVersionPolicy versionPolicy, IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, ManagedConnPool<HttpHost, IOSession> connPool, TlsStrategy tlsStrategy, Timeout handshakeTimeout) UseH2RequesterBootstrap
to create instances of this class.H2MultiplexingRequester
(IOReactorConfig ioReactorConfig, IOEventHandlerFactory eventHandlerFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Resolver<HttpHost, InetSocketAddress> addressResolver, TlsStrategy tlsStrategy) UseH2MultiplexingRequesterBootstrap
to create instances of this class. -
Uses of Callback in org.apache.hc.core5.http2.nio.pool
Methods in org.apache.hc.core5.http2.nio.pool with parameters of type CallbackModifier and TypeMethodDescriptionprotected void
H2ConnPool.validateSession
(IOSession ioSession, Callback<Boolean> callback) -
Uses of Callback in org.apache.hc.core5.http2.nio.support
Fields in org.apache.hc.core5.http2.nio.support declared as CallbackConstructors in org.apache.hc.core5.http2.nio.support with parameters of type Callback -
Uses of Callback in org.apache.hc.core5.pool
Methods in org.apache.hc.core5.pool with parameters of type CallbackModifier and TypeMethodDescriptionvoid
LaxConnPool.enumAvailable
(Callback<PoolEntry<T, C>> callback) void
LaxConnPool.PerRoutePool.enumAvailable
(Callback<PoolEntry<T, C>> callback) void
StrictConnPool.enumAvailable
(Callback<PoolEntry<T, C>> callback) Enumerates all available connections.void
LaxConnPool.enumLeased
(Callback<PoolEntry<T, C>> callback) void
LaxConnPool.PerRoutePool.enumLeased
(Callback<PoolEntry<T, C>> callback) void
StrictConnPool.enumLeased
(Callback<PoolEntry<T, C>> callback) Enumerates all leased connections. -
Uses of Callback in org.apache.hc.core5.reactive
Methods in org.apache.hc.core5.reactive with parameters of type CallbackModifier and TypeMethodDescriptionvoid
ReactiveRequestProcessor.processRequest
(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context, org.reactivestreams.Publisher<ByteBuffer> requestBody, Callback<org.reactivestreams.Publisher<ByteBuffer>> responseBodyCallback) Processes the actual HTTP request. -
Uses of Callback in org.apache.hc.core5.reactor
Fields in org.apache.hc.core5.reactor declared as CallbackModifier and TypeFieldDescriptionprivate final Callback
<ChannelEntry> SingleCoreListeningIOReactor.callback
AbstractSingleCoreIOReactor.exceptionCallback
SingleCoreIOReactor.sessionShutdownCallback
Methods in org.apache.hc.core5.reactor with parameters of type CallbackModifier and TypeMethodDescriptionfinal void
AbstractIOSessionPool.enumAvailable
(Callback<IOSession> callback) protected abstract void
AbstractIOSessionPool.validateSession
(IOSession ioSession, Callback<Boolean> callback) Constructors in org.apache.hc.core5.reactor with parameters of type CallbackModifierConstructorDescription(package private)
AbstractSingleCoreIOReactor
(Callback<Exception> exceptionCallback) DefaultConnectingIOReactor
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Decorator<IOSession> ioSessionDecorator, Callback<Exception> exceptionCallback, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback) DefaultConnectingIOReactor
(IOEventHandlerFactory eventHandlerFactory, IOReactorConfig config, Callback<IOSession> sessionShutdownCallback) 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 config, Callback<IOSession> sessionShutdownCallback) Creates an instance of DefaultListeningIOReactor with the given configuration.(package private)
SingleCoreIOReactor
(Callback<Exception> exceptionCallback, IOEventHandlerFactory eventHandlerFactory, IOReactorConfig reactorConfig, Decorator<IOSession> ioSessionDecorator, IOSessionListener sessionListener, Callback<IOSession> sessionShutdownCallback) (package private)
SingleCoreListeningIOReactor
(Callback<Exception> exceptionCallback, IOReactorConfig ioReactorConfig, Callback<ChannelEntry> callback) -
Uses of Callback in org.apache.hc.core5.reactor.ssl
Fields in org.apache.hc.core5.reactor.ssl declared as CallbackModifier and TypeFieldDescriptionprivate final Callback
<SSLIOSession> SSLIOSession.sessionEndCallback
private final Callback
<SSLIOSession> SSLIOSession.sessionStartCallback
Constructors in org.apache.hc.core5.reactor.ssl with parameters of type CallbackModifierConstructorDescriptionSSLIOSession
(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 ofSSLIOSession
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 ofSSLIOSession
class. -
Uses of Callback in org.apache.hc.core5.testing.nio
Classes in org.apache.hc.core5.testing.nio that implement CallbackMethods in org.apache.hc.core5.testing.nio with parameters of type CallbackModifier and TypeMethodDescription(package private) DefaultConnectingIOReactor
AsyncRequester.createIOReactor
(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback) (package private) DefaultListeningIOReactor
AsyncServer.createIOReactor
(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback) (package private) abstract T
IOReactorExecutor.createIOReactor
(IOEventHandlerFactory ioEventHandlerFactory, IOReactorConfig ioReactorConfig, ThreadFactory threadFactory, Callback<IOSession> sessionShutdownCallback) -
Uses of Callback in org.apache.hc.core5.testing.reactive
Methods in org.apache.hc.core5.testing.reactive with parameters of type CallbackModifier and TypeMethodDescriptionvoid
ReactiveEchoProcessor.processRequest
(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context, org.reactivestreams.Publisher<ByteBuffer> requestBody, Callback<org.reactivestreams.Publisher<ByteBuffer>> responseBodyFuture) void
ReactiveRandomProcessor.processRequest
(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context, org.reactivestreams.Publisher<ByteBuffer> requestBody, Callback<org.reactivestreams.Publisher<ByteBuffer>> responseBodyCallback)