org.apache.wicket.markup.head.filter
Class JavaScriptAcceptingHeaderResponseFilter
java.lang.Object
org.apache.wicket.markup.head.filter.AbstractHeaderResponseFilter
org.apache.wicket.markup.head.filter.JavaScriptAcceptingHeaderResponseFilter
- All Implemented Interfaces:
- FilteringHeaderResponse.IHeaderResponseFilter
public class JavaScriptAcceptingHeaderResponseFilter
- extends AbstractHeaderResponseFilter
This filter accepts all JavaScriptHeaderItem
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
Method Summary |
boolean |
accepts(HeaderItem item)
Determines whether a given HeaderItem should be rendered in the bucket represented by
this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaScriptAcceptingHeaderResponseFilter
public JavaScriptAcceptingHeaderResponseFilter(String name)
- Construct.
- Parameters:
name
- name of the filter (used by the container that renders these resources)
accepts
public boolean accepts(HeaderItem item)
- Description copied from interface:
FilteringHeaderResponse.IHeaderResponseFilter
- Determines whether a given HeaderItem should be rendered in the bucket represented by
this filter.
- Specified by:
accepts
in interface FilteringHeaderResponse.IHeaderResponseFilter
- Overrides:
accepts
in class AbstractHeaderResponseFilter
- Parameters:
item
- the item to be rendered
- Returns:
- true if it should be bucketed with other things in this filter
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.