use of org.apache.wicket.application.HeaderContributorListenerCollection in project wicket by apache.
the class AbstractHeaderRenderStrategy method renderApplicationLevelHeaders.
/**
* Render the application level headers
*
* @param headerContainer
*/
protected final void renderApplicationLevelHeaders(final HtmlHeaderContainer headerContainer) {
Args.notNull(headerContainer, "headerContainer");
if (Application.exists()) {
HeaderContributorListenerCollection headerContributorListenerCollection = Application.get().getHeaderContributorListeners();
IHeaderResponse headerResponse = headerContainer.getHeaderResponse();
for (IHeaderContributor listener : headerContributorListenerCollection) {
listener.renderHead(headerResponse);
}
}
}
Aggregations