java.lang.Object
org.apache.wicket.markup.html.DecoratingHeaderResponse
org.apache.wicket.csp.CSPNonceHeaderResponseDecorator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IHeaderResponse
Add a Content Security Policy (CSP) nonce to all
AbstractCspHeaderItem
s when that
is required by the configuration of the CSP.-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(HeaderItem item) Renders the givenHeaderItem
to the response if none of its tokens has been rendered before.Methods inherited from class org.apache.wicket.markup.html.DecoratingHeaderResponse
close, getRealResponse, getResponse, isClosed, markRendered, wasRendered
-
Constructor Details
-
CSPNonceHeaderResponseDecorator
public CSPNonceHeaderResponseDecorator(IHeaderResponse real, ContentSecurityPolicySettings settings)
-
-
Method Details
-
render
Description copied from interface:IHeaderResponse
Renders the givenHeaderItem
to the response if none of its tokens has been rendered before.Automatically marks all item's tokens as rendered.
- Specified by:
render
in interfaceIHeaderResponse
- Overrides:
render
in classDecoratingHeaderResponse
- Parameters:
item
- The item to render.- See Also:
-