Package org.apache.wicket.markup.head
Class CssUrlReferenceHeaderItem
- java.lang.Object
-
- org.apache.wicket.markup.head.HeaderItem
-
- org.apache.wicket.markup.head.AbstractCspHeaderItem
-
- org.apache.wicket.markup.head.CssHeaderItem
-
- org.apache.wicket.markup.head.AbstractCssReferenceHeaderItem
-
- org.apache.wicket.markup.head.CssUrlReferenceHeaderItem
-
- All Implemented Interfaces:
Serializable
,ISubresourceHeaderItem
,IClusterable
public class CssUrlReferenceHeaderItem extends AbstractCssReferenceHeaderItem
HeaderItem
for style tags that are rendered using a fixed URL, for example resources from an external site or context relative urls.- Author:
- papegaaij
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CssUrlReferenceHeaderItem(String url, String media)
Creates a newCSSUrlReferenceHeaderItem
.CssUrlReferenceHeaderItem(String url, String media, String rel)
Creates a newCSSUrlReferenceHeaderItem
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Iterable<?>
getRenderTokens()
String
getUrl()
int
hashCode()
void
render(Response response)
Renders theHeaderItem
to the response.String
toString()
-
Methods inherited from class org.apache.wicket.markup.head.AbstractCssReferenceHeaderItem
getCrossOrigin, getIntegrity, getMedia, getRel, internalRenderCSSReference, setCrossOrigin, setIntegrity
-
Methods inherited from class org.apache.wicket.markup.head.CssHeaderItem
forCSS, forReference, forReference, forReference, forReference, forUrl, forUrl, forUrl, getId, setId
-
Methods inherited from class org.apache.wicket.markup.head.AbstractCspHeaderItem
getNonce, setNonce
-
Methods inherited from class org.apache.wicket.markup.head.HeaderItem
getDependencies, getProvidedResources
-
-
-
-
Constructor Detail
-
CssUrlReferenceHeaderItem
public CssUrlReferenceHeaderItem(String url, String media, String rel)
Creates a newCSSUrlReferenceHeaderItem
.- Parameters:
url
- context-relative url of the CSS resourcemedia
- the media type for this CSS ("print", "screen", etc.)rel
- the rel attribute content
-
CssUrlReferenceHeaderItem
public CssUrlReferenceHeaderItem(String url, String media)
Creates a newCSSUrlReferenceHeaderItem
.- Parameters:
url
- context-relative url of the CSS resourcemedia
- the media type for this CSS ("print", "screen", etc.)
-
-
Method Detail
-
render
public void render(Response response)
Description copied from class:HeaderItem
Renders theHeaderItem
to the response.- Specified by:
render
in classHeaderItem
-
getRenderTokens
public Iterable<?> getRenderTokens()
- Specified by:
getRenderTokens
in classHeaderItem
- Returns:
- The tokens this
HeaderItem
can be identified by. If any of the tokens has already been rendered, thisHeaderItem
will not be rendered.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractCssReferenceHeaderItem
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classAbstractCssReferenceHeaderItem
-
-