Interface FilterCondition

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 FilterCondition
A condition which controls whether or not a filter will be invoked or not.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(Context context, Request request)
    Returns true if the conditional filter should be invoked, or false if processing should continue directly to the next filter in the filter chain.
  • Method Details

    • matches

      boolean matches(Context context, Request request)
      Returns true if the conditional filter should be invoked, or false if processing should continue directly to the next filter in the filter chain.
      Parameters:
      context - The filter chain context.
      request - The request to be filtered.
      Returns:
      true if the conditional filter should be invoked.