Interface Handler

All Known Subinterfaces:
StreamingHandler
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 Handler
An ordinary Java callback, invoked once per matched request.
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(Context context)
    Handles one matched request.
  • Method Details

    • handle

      Object handle(Context context) throws Exception
      Handles one matched request.
      Parameters:
      context - the request-scoped context
      Returns:
      a Response, a body value, or null for no content
      Throws:
      Exception - if application processing fails