Interface FilteringHeaderResponse.IHeaderResponseFilter
-
- All Superinterfaces:
java.util.function.Predicate<HeaderItem>
- All Known Implementing Classes:
AbstractHeaderResponseFilter,CssAcceptingHeaderResponseFilter,CssAndPageAcceptingHeaderResponseFilter,JavaScriptAcceptingHeaderResponseFilter,OppositeHeaderResponseFilter
- Enclosing class:
- FilteringHeaderResponse
public static interface FilteringHeaderResponse.IHeaderResponseFilter extends java.util.function.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 booleanaccepts(HeaderItem item)Determines whether a given HeaderItem should be rendered in the bucket represented by this filter.java.lang.StringgetName()default booleantest(HeaderItem item)
-
-
-
Method Detail
-
getName
java.lang.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:
testin interfacejava.util.function.Predicate<HeaderItem>
-
-