| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| private final AtomicReference |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final int | available()
Implements org. |
| public final void | consume(final ByteBuffer
data source. src)Implements org. |
| public final void | failed(final Exception
the cause of the failure. cause)Implements org. |
| protected abstract void | handle(T
the request message. requestMessage, AsyncServerRequestHandler.the response trigger. responseTrigger,the actual execution context. context)Triggered to handles the request object produced by the |
| public final void | handleRequest(final HttpRequest
the actual request. request, final EntityDetails the request entity details or entityDetails, final ResponseChannel null if the request
does not enclose an entity.the response channel. responseChannel, final HttpContext the actual execution context. context)Implements org. |
| public final void | produce(final DataStreamChannel
the data channel capable to accepting more data. channel)Implements org. |
| public final void | |
| public final void | streamEnd(final List<? extends Header>
data stream trailers. trailers)Implements org. |
| protected abstract AsyncRequestConsumer | Returns: the request consumer.the request message. request, EntityDetails the request entity details. entityDetails, HttpContext the actual execution context. context)Triggered to supply a request consumer to process the incoming request. |
| public final void | updateCapacity(final CapacityChannel
the channel for capacity updates. capacityChannel)Implements org. |
| requestConsumerRef | back to summary |
|---|---|
| private final AtomicReference<AsyncRequestConsumer<T>> requestConsumerRef | |
| responseProducerRef | back to summary |
|---|---|
| private final AtomicReference<AsyncResponseProducer> responseProducerRef | |
| AbstractServerExchangeHandler | back to summary |
|---|---|
| public AbstractServerExchangeHandler() | |
| available | back to summary |
|---|---|
| public final int available() Implements org. Doc from org. Returns the number of bytes immediately available for output. This method can be used as a hint to control output events of the underlying I/O session.
| |
| consume | back to summary |
|---|---|
| public final void consume(final ByteBuffer src) throws IOException Implements org. Doc from org. Triggered to pass incoming data to the data consumer. The consumer must consume the entire content of the data buffer. The consumer must stop incrementing its capacity on the capacity channel if it is unable to accept more data. Once the data consumer has handled accumulated data or allocated more intermediate storage it can update its capacity information on the capacity channel.
| |
| failed | back to summary |
|---|---|
| public final void failed(final Exception cause) Implements org. Doc from org. Triggered to signal a failure in data processing. | |
| handle | back to summary |
|---|---|
| protected abstract void handle(T requestMessage, AsyncServerRequestHandler. Triggered to handles the request object produced by the
| |
| handleRequest | back to summary |
|---|---|
| public final void handleRequest(final HttpRequest request, final EntityDetails entityDetails, final ResponseChannel responseChannel, final HttpContext context) throws HttpException, IOException Implements org. Doc from org. Processes the actual HTTP request. The handler can choose to send response messages immediately inside the call or asynchronously at some later point.
| |
| produce | back to summary |
|---|---|
| public final void produce(final DataStreamChannel channel) throws IOException Implements org. Doc from org. Triggered to signal the ability of the underlying data channel to accept more data. The data producer can choose to write data immediately inside the call or asynchronously at some later point.
| |
| releaseResources | back to summary |
|---|---|
| public final void releaseResources() Implements org.
| |
| streamEnd | back to summary |
|---|---|
| public final void streamEnd(final List<? extends Header> trailers) throws HttpException, IOException Implements org. Doc from org. Triggered to signal termination of the data stream. | |
| supplyConsumer | back to summary |
|---|---|
| protected abstract AsyncRequestConsumer Triggered to supply a request consumer to process the incoming request.
| |
| updateCapacity | back to summary |
|---|---|
| public final void updateCapacity(final CapacityChannel capacityChannel) throws IOException Implements org. Doc from org. Triggered to signal ability of the underlying data stream to receive data capacity update. The data consumer can choose to write data immediately inside the call or asynchronously at some later point.
| |