public class AsyncEchoHandler extends Object implements AsyncServerExchangeHandler
| Constructor and Description | 
|---|
| AsyncEchoHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | available() | 
| void | consume(ByteBuffer src) | 
| void | failed(Exception cause) | 
| void | handleRequest(HttpRequest request,
             EntityDetails entityDetails,
             ResponseChannel responseChannel,
             HttpContext context) | 
| void | produce(DataStreamChannel channel) | 
| void | releaseResources() | 
| void | streamEnd(List<? extends Header> trailers) | 
| void | updateCapacity(CapacityChannel capacityChannel) | 
public void releaseResources()
releaseResources in interface ResourceHolderpublic void handleRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context) throws HttpException, IOException
handleRequest in interface AsyncServerExchangeHandlerHttpExceptionIOExceptionpublic void updateCapacity(CapacityChannel capacityChannel) throws IOException
updateCapacity in interface AsyncDataConsumerIOExceptionpublic void consume(ByteBuffer src) throws IOException
consume in interface AsyncDataConsumerIOExceptionpublic void streamEnd(List<? extends Header> trailers) throws HttpException, IOException
streamEnd in interface AsyncDataConsumerHttpExceptionIOExceptionpublic int available()
available in interface AsyncDataProducerpublic void produce(DataStreamChannel channel) throws IOException
produce in interface AsyncDataProducerIOExceptionpublic void failed(Exception cause)
failed in interface AsyncDataExchangeHandlerCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.