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
 
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)
           
protected  FilteringHeaderResponse.IHeaderResponseFilter createHeaderFilter(String headerFilterName)
           
 
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

protected FilteringHeaderResponse.IHeaderResponseFilter createFooterFilter(String footerBucketName,
                                                                           FilteringHeaderResponse.IHeaderResponseFilter header)

createHeaderFilter

protected FilteringHeaderResponse.IHeaderResponseFilter createHeaderFilter(String headerFilterName)


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