public class CssUrlReferenceHeaderItem extends CssHeaderItem
HeaderItem
for style tags that are rendered using a fixed URL, for example resources from
an external site or context relative urls.Constructor and Description |
---|
CssUrlReferenceHeaderItem(String url,
String media,
String condition)
Creates a new
CSSUrlReferenceHeaderItem . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getMedia() |
Iterable<?> |
getRenderTokens() |
String |
getUrl() |
int |
hashCode() |
void |
render(Response response)
Renders the
HeaderItem to the response. |
String |
toString() |
forCSS, forCSS, forReference, forReference, forReference, forReference, forUrl, forUrl, forUrl, getCondition, getId, internalRenderCSSReference, setId
getDependencies, getProvidedResources
public CssUrlReferenceHeaderItem(String url, String media, String condition)
CSSUrlReferenceHeaderItem
.url
- context-relative url of the CSS resourcemedia
- the media type for this CSS ("print", "screen", etc.)condition
- the condition to use for Internet Explorer conditional comments. E.g. "IE 7".public String getUrl()
public String getMedia()
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–2016 Apache Software Foundation. All rights reserved.