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 obj) |
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, getProvidedResourcespublic 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)
HeaderItemHeaderItem to the response.render in class HeaderItempublic Iterable<?> getRenderTokens()
getRenderTokens in class HeaderItemHeaderItem can be identified by. If any of the tokens has
already been rendered, this HeaderItem will not be rendered.Copyright © 2006–2014 Apache Software Foundation. All rights reserved.