Interface AsyncServerExchangeHandler

All Superinterfaces:
AsyncDataConsumer, AsyncDataExchangeHandler, AsyncDataProducer, ResourceHolder
All Known Implementing Classes:
AbstractClassicServerExchangeHandler, AbstractServerExchangeHandler, BasicAsyncServerExpectationDecorator, BasicServerExchangeHandler, ImmediateResponseExchangeHandler, ReactiveServerExchangeHandler

public interface AsyncServerExchangeHandler extends AsyncDataExchangeHandler
Abstract asynchronous server side message exchange handler that acts as a request consumer and a response producer.
Since:
5.0
  • Method Details

    • handleRequest

      void handleRequest(HttpRequest request, EntityDetails entityDetails, ResponseChannel responseChannel, HttpContext context) throws HttpException, IOException
      Processes the actual HTTP request. The handler can choose to send response messages immediately inside the call or asynchronously at some later point.
      Parameters:
      request - the actual request.
      entityDetails - the request entity details or null if the request does not enclose an entity.
      responseChannel - the response channel.
      context - the actual execution context.
      Throws:
      HttpException
      IOException