org.apache.wicket.markup.head.filter
Class CssAndPageAcceptingHeaderResponseFilter

java.lang.Object
  extended by org.apache.wicket.markup.head.filter.AbstractHeaderResponseFilter
      extended by org.apache.wicket.markup.head.filter.CssAndPageAcceptingHeaderResponseFilter
All Implemented Interfaces:
FilteringHeaderResponse.IHeaderResponseFilter

public class CssAndPageAcceptingHeaderResponseFilter
extends AbstractHeaderResponseFilter

This filter accepts all CssHeaderItems and PageHeaderItems (header items for the <head> section of the page).

Author:
Emond Papegaaij

Constructor Summary
CssAndPageAcceptingHeaderResponseFilter(String name)
          Construct.
 
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 org.apache.wicket.markup.head.filter.AbstractHeaderResponseFilter
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssAndPageAcceptingHeaderResponseFilter

public CssAndPageAcceptingHeaderResponseFilter(String name)
Construct.

Parameters:
name - name of the filter (used by the container that renders these resources)
Method Detail

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.