Package org.apache.wicket.markup.head
Class HeaderItem
- java.lang.Object
-
- org.apache.wicket.markup.head.HeaderItem
-
- All Implemented Interfaces:
Serializable
,IClusterable
- Direct Known Subclasses:
AbstractCspHeaderItem
,FilteredHeaderItem
,MetaDataHeaderItem
,NoHeaderItem
,PriorityHeaderItem
,PushHeaderItem
,StringHeaderItem
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.HeaderItem
s are used byResourceAggregator
to be able to collect all header sections in a uniform way. AllHeaderItem
s are expected to have decentequals
,hashCode
andtoString
(for debugging).- Author:
- papegaaij
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HeaderItem()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<HeaderItem>
getDependencies()
Iterable<? extends HeaderItem>
getProvidedResources()
abstract Iterable<?>
getRenderTokens()
abstract void
render(Response response)
Renders theHeaderItem
to the response.
-
-
-
Constructor Detail
-
HeaderItem
public HeaderItem()
-
-
Method Detail
-
getDependencies
public List<HeaderItem> getDependencies()
- Returns:
- The dependencies this
HeaderItem
has. Dependencies will always be rendered before the item itself.
-
getProvidedResources
public Iterable<? extends HeaderItem> getProvidedResources()
- Returns:
- The resources this
HeaderItem
provides. As these resources are provided by this item, they will no longer be rendered.
-
getRenderTokens
public abstract Iterable<?> getRenderTokens()
- Returns:
- The tokens this
HeaderItem
can be identified by. If any of the tokens has already been rendered, thisHeaderItem
will not be rendered.
-
-