Package spark

Interface Filter

All Known Implementing Classes:
FilterImpl
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 Filter
Created by Per Wendel on 2014-05-10.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(Request request, Response response)
    Invoked when a request is made on this filter's corresponding path e.g.
  • Method Details

    • handle

      void handle(Request request, Response response) throws Exception
      Invoked when a request is made on this filter's corresponding path e.g. '/hello'
      Parameters:
      request - The request object providing information about the HTTP request
      response - The response object providing functionality for modifying the response
      Throws:
      Exception - when handle fails