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

java.lang.Object
  extended by org.apache.wicket.markup.html.DecoratingHeaderResponse
      extended by org.apache.wicket.markup.head.filter.FilteringHeaderResponse
          extended by org.apache.wicket.markup.head.filter.JavaScriptFilteredIntoFooterHeaderResponse
All Implemented Interfaces:
Closeable, IHeaderResponse

public final class JavaScriptFilteredIntoFooterHeaderResponse
extends FilteringHeaderResponse

A header response that creates two buckets. The header bucket will contain all references to CSS and markup from the <head> section from the page. The other bucket will contain all other header items, and you will need to add a HeaderResponseContainer to the footer of your page (typically just before the end body tag) to render those items.

Author:
Jeremy Thomerson

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.markup.head.filter.FilteringHeaderResponse
FilteringHeaderResponse.IHeaderResponseFilter
 
Field Summary
static String HEADER_FILTER_NAME
          The name of the filter that renders the head section of the page
 
Fields inherited from class org.apache.wicket.markup.head.filter.FilteringHeaderResponse
DEFAULT_HEADER_FILTER_NAME
 
Constructor Summary
JavaScriptFilteredIntoFooterHeaderResponse(IHeaderResponse response, String footerBucketName)
          Construct.
 
Method Summary
protected  Iterable<? extends FilteringHeaderResponse.IHeaderResponseFilter> createFilters(String footerBucketName)
           
protected  FilteringHeaderResponse.IHeaderResponseFilter createFooterFilter(String footerBucketName, FilteringHeaderResponse.IHeaderResponseFilter header)
          Deprecated. no longer part of the API
protected  FilteringHeaderResponse.IHeaderResponseFilter createHeaderFilter(String headerFilterName)
          Deprecated. no longer part of the API
 
Methods inherited from class org.apache.wicket.markup.head.filter.FilteringHeaderResponse
close, get, getContent, render, render, setFilters
 
Methods inherited from class org.apache.wicket.markup.html.DecoratingHeaderResponse
getRealResponse, getResponse, isClosed, markRendered, wasRendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER_FILTER_NAME

public static final String HEADER_FILTER_NAME
The name of the filter that renders the head section of the page

See Also:
Constant Field Values
Constructor Detail

JavaScriptFilteredIntoFooterHeaderResponse

public JavaScriptFilteredIntoFooterHeaderResponse(IHeaderResponse response,
                                                  String footerBucketName)
Construct.

Parameters:
response - the response you are wrapping
footerBucketName - the name of the bucket that you will use for your footer container (see the class javadocs for a reminder about putting this container in your footer)
Method Detail

createFilters

protected Iterable<? extends FilteringHeaderResponse.IHeaderResponseFilter> createFilters(String footerBucketName)

createFooterFilter

@Deprecated
protected FilteringHeaderResponse.IHeaderResponseFilter createFooterFilter(String footerBucketName,
                                                                                      FilteringHeaderResponse.IHeaderResponseFilter header)
Deprecated. no longer part of the API

see WICKET-4736 JavaScriptFilteredIntoFooterHeaderResponse should reverse filter logic

Parameters:
footerBucketName -
header -
Returns:
the correct header response filter, but a different one

createHeaderFilter

@Deprecated
protected FilteringHeaderResponse.IHeaderResponseFilter createHeaderFilter(String headerFilterName)
Deprecated. no longer part of the API

see WICKET-4736 JavaScriptFilteredIntoFooterHeaderResponse should reverse filter logic

Parameters:
headerFilterName -
Returns:
the wrong header response filter


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.