public class StringHeaderItem extends HeaderItem
HeaderItem
. No checks are performed on what is added to the header.Constructor and Description |
---|
StringHeaderItem(CharSequence string)
Construct.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static StringHeaderItem |
forString(CharSequence string)
Creates a
StringHeaderItem for the snippet. |
Iterable<?> |
getRenderTokens() |
CharSequence |
getString() |
int |
hashCode() |
void |
render(Response response)
Renders the
HeaderItem to the response. |
String |
toString() |
getDependencies, getProvidedResources
public StringHeaderItem(CharSequence string)
string
- public static StringHeaderItem forString(CharSequence string)
StringHeaderItem
for the snippet.string
- string to be rendered to headStringHeaderItem
.public CharSequence getString()
public void render(Response response)
HeaderItem
HeaderItem
to the response.render
in class HeaderItem
public 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.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.