public abstract class HeaderItem extends Object implements IClusterable
HeaderItem represents anything that can be rendered into the header. This can, for
example, be a script or a stylesheet
, but also event triggers or free
form text. HeaderItems are used by ResourceAggregator to be able to collect all
header sections in a uniform way. All HeaderItems are expected to have decent
equals, hashCode and toString (for debugging).| Constructor and Description |
|---|
HeaderItem() |
| Modifier and Type | Method and Description |
|---|---|
List<HeaderItem> |
getDependencies() |
Iterable<? extends HeaderItem> |
getProvidedResources() |
abstract Iterable<?> |
getRenderTokens() |
abstract void |
render(Response response)
Renders the
HeaderItem to the response. |
public List<HeaderItem> getDependencies()
HeaderItem has. Dependencies will always be rendered
before the item itself.public Iterable<? extends HeaderItem> getProvidedResources()
HeaderItem provides. As these resources are provided by
this item, they will no longer be rendered.public abstract Iterable<?> getRenderTokens()
HeaderItem can be identified by. If any of the tokens has
already been rendered, this HeaderItem will not be rendered.public abstract void render(Response response)
HeaderItem to the response.response - Copyright © 2006–2021 Apache Software Foundation. All rights reserved.