Package ninja

Interface Filter

  • All Known Implementing Classes:
    AuthenticityFilter, BasicAuthFilter, SecureFilter

    public interface Filter
    A simple filter that can be applied to controller methods or while classes. usually you use @FilterWith(MyFilter.class) where MyFilter.class is implementing this interface. @FilterWith works also with multiple filter @FilterWith({MyFirstFilter.class, MySecondFilter.class})
    Author:
    ra
    • Method Detail

      • filter

        Result filter​(FilterChain filterChain,
                      Context context)
        Filter the request. Filters should invoke the filterChain.nextFilter() method if they wish the request to proceed.
        Parameters:
        filterChain - The filter chain
        context - The context