Interface FilteringHeaderResponse.IHeaderResponseFilter

All Superinterfaces:
Predicate<HeaderItem>
All Known Implementing Classes:
AbstractHeaderResponseFilter, CssAcceptingHeaderResponseFilter, CssAndPageAcceptingHeaderResponseFilter, JavaScriptAcceptingHeaderResponseFilter, OppositeHeaderResponseFilter
Enclosing class:
FilteringHeaderResponse

A filter used to bucket your resources, inline scripts, etc, into different responses. The bucketed resources are then rendered by a HeaderResponseContainer, using the name of the filter to get the correct bucket.
Author:
Jeremy Thomerson
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines whether a given HeaderItem should be rendered in the bucket represented by this filter.
     
    default boolean
     

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Method Details

    • getName

      Returns:
      name of the filter (used by the container that renders these resources)
    • accepts

      boolean accepts(HeaderItem item)
      Determines whether a given HeaderItem should be rendered in the bucket represented by this filter.
      Parameters:
      item - the item to be rendered
      Returns:
      true if it should be bucketed with other things in this filter
    • test

      default boolean test(HeaderItem item)
      Specified by:
      test in interface Predicate<HeaderItem>