Interface Handler.EntityHandler<T>

Type Parameters:
T - a type of the content entity
Enclosing interface:
Handler
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 static interface Handler.EntityHandler<T>
Handles request, response and HTTP request content entity. Used as functional parameter in Handler.create(Class, EntityHandler) method.
  • Method Details

    • accept

      void accept(ServerRequest req, ServerResponse res, T entity)
      Functional method handles request, response and HTTP request content entity.
      Parameters:
      req - an HTTP request
      res - an HTTP response
      entity - an entity representing the HTTP request content