public class PriorityHeaderItem extends HeaderItem implements IWrappedHeaderItem
HeaderItem
that has priority over other header items. PriorityHeaderItem
s
rendered parent-first at the beginning of the header. Dependencies of a
PriorityHeaderItem
also have priority.Constructor and Description |
---|
PriorityHeaderItem(HeaderItem wrapped)
Construct.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<HeaderItem> |
getDependencies() |
Iterable<? extends HeaderItem> |
getProvidedResources() |
Iterable<?> |
getRenderTokens() |
HeaderItem |
getWrapped() |
int |
hashCode() |
void |
render(Response response)
Renders the
HeaderItem to the response. |
String |
toString() |
PriorityHeaderItem |
wrap(HeaderItem item)
Wraps an existing HeaderItem
|
public PriorityHeaderItem(HeaderItem wrapped)
wrapped
- the actual HeaderItem
that should have prioritypublic HeaderItem getWrapped()
getWrapped
in interface IWrappedHeaderItem
HeaderItem
public PriorityHeaderItem wrap(HeaderItem item)
IWrappedHeaderItem
wrap
in interface IWrappedHeaderItem
item
- The item to wrappublic Iterable<?> getRenderTokens()
getRenderTokens
in class HeaderItem
HeaderItem
can be identified by. If any of the tokens has
already been rendered, this HeaderItem
will not be rendered.public void render(Response response)
HeaderItem
HeaderItem
to the response.render
in class HeaderItem
public List<HeaderItem> getDependencies()
getDependencies
in class HeaderItem
HeaderItem
has. Dependencies will always be rendered
before the item itself.public Iterable<? extends HeaderItem> getProvidedResources()
getProvidedResources
in class HeaderItem
HeaderItem
provides. As these resources are provided by
this item, they will no longer be rendered.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.