org.apache.wicket.resource.filtering
Interface HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter

All Known Implementing Classes:
AbstractHeaderResponseFilter, CssAcceptingHeaderResponseFilter, JavascriptAcceptingHeaderResponseFilter, OppositeHeaderResponseFilter
Enclosing class:
HeaderResponseContainerFilteringHeaderResponse

public static interface HeaderResponseContainerFilteringHeaderResponse.IHeaderResponseFilter

A filter used to bucket your resources, inline scripts, etc, into different responses. The bucketed resources are then rendered by a HeaderResponseFilteredResponseContainer, using the name of the filter to get the correct bucket.

Author:
Jeremy Thomerson

Method Summary
 boolean acceptOtherCss()
          Whenever a renderCSS* method on IHeaderResponse is called that is not a ResourceReference (i.e.
 boolean acceptOtherJavascript()
          Whenever a render*Javascript method on IHeaderResponse is called that is not a ResourceReference (i.e.
 boolean acceptReference(ResourceReference ref)
          Determines whether a given ResourceReference should be rendered in the bucket represented by this filter.
 String getName()
           
 

Method Detail

getName

String getName()
Returns:
name of the filter (used by the container that renders these resources)

acceptReference

boolean acceptReference(ResourceReference ref)
Determines whether a given ResourceReference should be rendered in the bucket represented by this filter.

Parameters:
ref - the reference to be rendered
Returns:
true if it should be bucketed with other things in this filter

acceptOtherJavascript

boolean acceptOtherJavascript()
Whenever a render*Javascript method on IHeaderResponse is called that is not a ResourceReference (i.e. IHeaderResponse.renderOnDomReadyJavascript(String)), this method determines if the script should be bucketed with other things in this filter. Note that calls to IHeaderResponse.renderJavascriptReference(String url) are also filtered with this method since there is no actual ResourceReference to pass

Returns:
true if javascript should be bucketed with other things in this filter

acceptOtherCss

boolean acceptOtherCss()
Whenever a renderCSS* method on IHeaderResponse is called that is not a ResourceReference (i.e. IHeaderResponse.renderCSSReference(String), or IHeaderResponse.renderCSSReference(String, String)), this method determines if the CSS reference should be bucketed with other things in this filter.

Returns:
true if css should be bucketed with other things in this filter


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.