Class JavaScriptFilteredIntoFooterHeaderResponse
- java.lang.Object
-
- org.apache.wicket.markup.html.DecoratingHeaderResponse
-
- org.apache.wicket.markup.head.filter.FilteringHeaderResponse
-
- org.apache.wicket.markup.head.filter.JavaScriptFilteredIntoFooterHeaderResponse
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IHeaderResponse
public 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 aHeaderResponseContainer
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
-
Fields inherited from class org.apache.wicket.markup.head.filter.FilteringHeaderResponse
DEFAULT_HEADER_FILTER_NAME
-
-
Constructor Summary
Constructors Constructor Description JavaScriptFilteredIntoFooterHeaderResponse(IHeaderResponse response, String footerBucketName)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FilteringHeaderResponse.IHeaderResponseFilter
createFooterFilter(String footerBucketName)
protected FilteringHeaderResponse.IHeaderResponseFilter
createHeaderFilter(String headerFilterName, FilteringHeaderResponse.IHeaderResponseFilter footerFilter)
-
Methods inherited from class org.apache.wicket.markup.head.filter.FilteringHeaderResponse
close, decorate, get, getContent, render, render, setFilters
-
Methods inherited from class org.apache.wicket.markup.html.DecoratingHeaderResponse
getRealResponse, getResponse, isClosed, markRendered, wasRendered
-
-
-
-
Constructor Detail
-
JavaScriptFilteredIntoFooterHeaderResponse
public JavaScriptFilteredIntoFooterHeaderResponse(IHeaderResponse response, String footerBucketName)
Construct.- Parameters:
response
- the response you are wrappingfooterBucketName
- 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
-
createFooterFilter
protected FilteringHeaderResponse.IHeaderResponseFilter createFooterFilter(String footerBucketName)
-
createHeaderFilter
protected FilteringHeaderResponse.IHeaderResponseFilter createHeaderFilter(String headerFilterName, FilteringHeaderResponse.IHeaderResponseFilter footerFilter)
-
-