Interface FilteringHeaderResponse.IHeaderResponseFilter
-
- All Superinterfaces:
Predicate<HeaderItem>
- All Known Implementing Classes:
AbstractHeaderResponseFilter
,CssAcceptingHeaderResponseFilter
,CssAndPageAcceptingHeaderResponseFilter
,JavaScriptAcceptingHeaderResponseFilter
,OppositeHeaderResponseFilter
- Enclosing class:
- FilteringHeaderResponse
public static interface FilteringHeaderResponse.IHeaderResponseFilter extends Predicate<HeaderItem>
A filter used to bucket your resources, inline scripts, etc, into different responses. The bucketed resources are then rendered by aHeaderResponseContainer
, using the name of the filter to get the correct bucket.- Author:
- Jeremy Thomerson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
accepts(HeaderItem item)
Determines whether a given HeaderItem should be rendered in the bucket represented by this filter.String
getName()
default boolean
test(HeaderItem item)
-
-
-
Method Detail
-
getName
String 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 interfacePredicate<HeaderItem>
-
-