T - the type of request messages.public class BasicServerExchangeHandler<T> extends AbstractServerExchangeHandler<T>
AbstractServerExchangeHandler implementation that delegates
 request processing and response generation to a AsyncServerRequestHandler.| Constructor and Description | 
|---|
| BasicServerExchangeHandler(AsyncServerRequestHandler<T> requestHandler) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | handle(T requestMessage,
      AsyncServerRequestHandler.ResponseTrigger responseTrigger,
      HttpContext context)Triggered to handles the request object produced by the  AsyncRequestConsumerreturned
 from theAbstractServerExchangeHandler.supplyConsumer(HttpRequest, EntityDetails, HttpContext)method. | 
| protected AsyncRequestConsumer<T> | supplyConsumer(HttpRequest request,
              EntityDetails entityDetails,
              HttpContext context)Triggered to supply a request consumer to process the incoming request. | 
available, consume, failed, handleRequest, produce, releaseResources, streamEnd, updateCapacitypublic BasicServerExchangeHandler(AsyncServerRequestHandler<T> requestHandler)
protected AsyncRequestConsumer<T> supplyConsumer(HttpRequest request, EntityDetails entityDetails, HttpContext context) throws HttpException
AbstractServerExchangeHandlersupplyConsumer in class AbstractServerExchangeHandler<T>request - the request message.entityDetails - the request entity details.context - the actual execution context.HttpException - in case of an HTTP protocol violation.protected void handle(T requestMessage, AsyncServerRequestHandler.ResponseTrigger responseTrigger, HttpContext context) throws HttpException, IOException
AbstractServerExchangeHandlerAsyncRequestConsumer returned
 from the AbstractServerExchangeHandler.supplyConsumer(HttpRequest, EntityDetails, HttpContext) method. The handler
 can choose to send response messages immediately inside the call or asynchronously
 at some later point.handle in class AbstractServerExchangeHandler<T>requestMessage - the request message.responseTrigger - the response trigger.context - the actual execution context.HttpException - in case of an HTTP protocol violation.IOException - in case of an I/O error.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.