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 . |
CssUrlReferenceHeaderItem(String url,
String media,
String condition,
String rel)
Creates a new
CSSUrlReferenceHeaderItem . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getMedia() |
String |
getRel() |
Iterable<?> |
getRenderTokens() |
String |
getUrl() |
int |
hashCode() |
void |
render(Response response)
Renders the
HeaderItem to the response. |
String |
toString() |
forCSS, forCSS, forReference, forReference, forReference, forReference, forReference, forUrl, forUrl, forUrl, forUrl, getCondition, getId, internalRenderCSSReference, setId
getDependencies, getProvidedResources
public CssUrlReferenceHeaderItem(String url, String media, String condition, String rel)
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".rel
- the rel attribute contentpublic 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 String getRel()
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.public int hashCode()
hashCode
in class CssHeaderItem
public boolean equals(Object o)
equals
in class CssHeaderItem
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.