Top Description Interfaces Classes
[default module]

Package org.apache.hc.core5.http.nio


Core HTTP transport APIs based on the asynchronous, event driven I/O model.

The application programming interface is based on the concept of channels and event handlers. The channels act as conduits for asynchronous data output. They are generally expected to be thread-safe and could be used by multiple threads concurrently. The event handlers react to asynchronous signals or events and communicate with the opposite endpoint through available channels. Event handlers can be specialized as data producers, data consumers or can be both. Generally event handlers can only be used by a single thread at a time and do not require synchronization as long as they do not interact with event handlers run by separate threads.

Interface Summary

Modifier and TypeInterface and Description
public interface
AsyncClientExchangeHandler

Abstract asynchronous client side message exchange handler that acts as a request producer and a response consumer.

public interface
AsyncDataConsumer

Abstract asynchronous data consumer.

public interface
AsyncDataExchangeHandler

Abstract asynchronous data exchange handler that acts as a data consumer and a data producer.

public interface
AsyncDataProducer

Abstract asynchronous data producer.

public interface
AsyncEntityConsumer<
entity representation.
T
>

Abstract asynchronous message entity consumer.

public interface
AsyncEntityProducer

Abstract asynchronous message entity producer.

public interface
AsyncFilterChain

AsyncFilterChain represents a single element in the server side request processing chain.

public interface
AsyncFilterHandler

AsyncFilterHandler represents a routine for handling all incoming requests in the server side request processing chain.

public interface
AsyncPushConsumer

Abstract asynchronous push response consumer.

public interface
AsyncPushProducer

Abstract asynchronous push response producer.

public interface
AsyncRequestConsumer<
request representation.
T
>

Abstract asynchronous request consumer.

public interface
AsyncRequestProducer

Abstract asynchronous request producer.

public interface
AsyncResponseConsumer<
response representation.
T
>

Abstract asynchronous response consumer.

public interface
AsyncResponseProducer

Abstract asynchronous response producer.

public interface
AsyncServerExchangeHandler

Abstract asynchronous server side message exchange handler that acts as a request consumer and a response producer.

public interface
AsyncServerRequestHandler<
request representation.
T
>

AsyncServerRequestHandler represents a routine for processing of a specific group of HTTP requests.

public interface
CapacityChannel

Abstract capacity update channel.

public interface
ContentDecoder

Abstract HTTP content decoder.

public interface
ContentEncoder

Abstract HTTP content encoder.

public interface
DataStreamChannel

Abstract byte stream channel

Implementations are expected to be thread-safe.

public interface
FileContentDecoder

A content decoder capable of transferring data directly to a FileChannel

public interface
FileContentEncoder

A content encoder capable of transferring data directly from a FileChannel

public interface
HandlerFactory<
handler type
T extends ResourceHolder
>

Abstract handler factory.

public interface
NHttpMessageParser<T extends MessageHeaders>

Message parser intended to build HTTP message head from a session input buffer..

public interface
public interface
NHttpMessageWriter<T extends MessageHeaders>

Message writer intended to serialize HTTP message head to a session buffer.

public interface
public interface
RequestChannel

Abstract request channel.

public interface
ResourceHolder

Abstract resource holder.

public interface
ResponseChannel

Abstract response / response promise channel.

public interface
SessionInputBuffer

Session input buffer for HTTP/1.1 non-blocking connections.

public interface
SessionOutputBuffer

Session output buffer for non-blocking HTTP/1.1 connections.

public interface
StreamChannel<
data container accepted by the channel.
T extends Buffer
>

Abstract data stream channel.

Class Summary

Modifier and TypeClass and Description
public abstract class
AsyncClientEndpoint

Client endpoint leased from a connection manager.