T - request representation.@Contract(threading=STATELESS) public interface AsyncServerRequestHandler<T>
| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | AsyncServerRequestHandler.ResponseTriggerResponse trigger that can be used to submit a final HTTP response
 and terminate HTTP request processing. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | handle(T requestObject,
      AsyncServerRequestHandler.ResponseTrigger responseTrigger,
      HttpContext context)Triggered to handles the request object produced by the  AsyncRequestConsumerreturned
 from theprepare(HttpRequest, EntityDetails, HttpContext)method. | 
| AsyncRequestConsumer<T> | prepare(HttpRequest request,
       EntityDetails entityDetails,
       HttpContext context)Triggered to signal new incoming request. | 
AsyncRequestConsumer<T> prepare(HttpRequest request, EntityDetails entityDetails, HttpContext context) throws HttpException
AsyncRequestConsumer based on
 properties of the request head and entity details and let it process the request data stream. The request
  handler will be used to generate an object that represents request data.request - the incoming request head.entityDetails - the request entity details or null if the request
                      does not enclose an entity.context - the actual execution context.HttpExceptionvoid handle(T requestObject, AsyncServerRequestHandler.ResponseTrigger responseTrigger, HttpContext context) throws HttpException, IOException
AsyncRequestConsumer returned
 from the prepare(HttpRequest, EntityDetails, HttpContext) method. The handler can choose
 to send response messages immediately inside the call or asynchronously at some later point.requestObject - the request object.responseTrigger - the response trigger.context - the actual execution context.HttpExceptionIOExceptionCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.