Package org.apache.wicket.markup.head
Class AbstractCspHeaderItem
- java.lang.Object
-
- org.apache.wicket.markup.head.HeaderItem
-
- org.apache.wicket.markup.head.AbstractCspHeaderItem
-
- All Implemented Interfaces:
Serializable
,IClusterable
- Direct Known Subclasses:
CssHeaderItem
,JavaScriptHeaderItem
,OnDomReadyHeaderItem
,OnEventHeaderItem
,OnLoadHeaderItem
public abstract class AbstractCspHeaderItem extends HeaderItem
Abstract base class for allHeaderItem
s that have a nonce to allow the browser to check Content Security Policy (CSP) .- Author:
- svenmeier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractCspHeaderItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNonce()
AbstractCspHeaderItem
setNonce(String nonce)
Set the CSP nonce-
Methods inherited from class org.apache.wicket.markup.head.HeaderItem
getDependencies, getProvidedResources, getRenderTokens, render
-
-
-
-
Constructor Detail
-
AbstractCspHeaderItem
public AbstractCspHeaderItem()
-
-
Method Detail
-
setNonce
public AbstractCspHeaderItem setNonce(String nonce)
Set the CSP nonce- Parameters:
nonce
-- Returns:
this
object, for method chaining
-
-