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 TypeMethodDescriptionboolean
accepts
(HeaderItem item) Determines whether a given HeaderItem should be rendered in the bucket represented by this filter.getName()
default boolean
test
(HeaderItem item)
-
Method Details
-
getName
- Returns:
- name of the filter (used by the container that renders these resources)
-
accepts
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
- Specified by:
test
in interfacePredicate<HeaderItem>
-