Module io.avaje.jex
Package io.avaje.jex

Interface ExchangeHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ExchangeHandler
A handler which is invoked to process HTTP exchanges. Each HTTP exchange is handled by one of these handlers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Handle the given request and generate an appropriate response.
  • Method Details

    • handle

      void handle(Context ctx) throws IOException
      Handle the given request and generate an appropriate response. See Context for a description of the steps involved in handling an exchange.
      Parameters:
      ctx - the request context containing the request from the client and used to send the response
      Throws:
      IOException