Class JavaScriptAcceptingHeaderResponseFilter
- java.lang.Object
-
- org.apache.wicket.markup.head.filter.AbstractHeaderResponseFilter
-
- org.apache.wicket.markup.head.filter.JavaScriptAcceptingHeaderResponseFilter
-
- All Implemented Interfaces:
Predicate<HeaderItem>
,FilteringHeaderResponse.IHeaderResponseFilter
public class JavaScriptAcceptingHeaderResponseFilter extends AbstractHeaderResponseFilter
This filter accepts allJavaScriptHeaderItem
s. Note: this filter used to accept everything that is not css, it no longer does. For example, meta-tags are neither CSS nor JS.- Author:
- Jeremy Thomerson, Emond Papegaaij
-
-
Constructor Summary
Constructors Constructor Description JavaScriptAcceptingHeaderResponseFilter(String name)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
acceptsWrapped(HeaderItem item)
-
Methods inherited from class org.apache.wicket.markup.head.filter.AbstractHeaderResponseFilter
accepts, getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.markup.head.filter.FilteringHeaderResponse.IHeaderResponseFilter
test
-
-
-
-
Constructor Detail
-
JavaScriptAcceptingHeaderResponseFilter
public JavaScriptAcceptingHeaderResponseFilter(String name)
Construct.- Parameters:
name
- name of the filter (used by the container that renders these resources)
-
-
Method Detail
-
acceptsWrapped
protected boolean acceptsWrapped(HeaderItem item)
- Overrides:
acceptsWrapped
in classAbstractHeaderResponseFilter
-
-