java.lang.Object
org.apache.wicket.csp.ClonedCSPValue
- All Implemented Interfaces:
CSPRenderable
A CSP value that renders the same value as rendered for the specified directive.
- Author:
- papegaaij
-
Constructor Summary
ConstructorsConstructorDescriptionClonedCSPValue
(CSPHeaderConfiguration headerConfiguration, CSPDirective sourceDirective) Creates a newClonedCSPValue
for the given directive. -
Method Summary
Modifier and TypeMethodDescriptionrender
(ContentSecurityPolicySettings settings, RequestCycle cycle) Renders the value that should be put in the CSP header.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.wicket.csp.CSPRenderable
checkValidityForSrc
-
Constructor Details
-
ClonedCSPValue
Creates a newClonedCSPValue
for the given directive.- Parameters:
headerConfiguration
- the header to clone from;sourceDirective
- the directive to clone;
-
-
Method Details
-
render
Description copied from interface:CSPRenderable
Renders the value that should be put in the CSP header.- Specified by:
render
in interfaceCSPRenderable
- Parameters:
settings
- TheContentSecurityPolicySettings
that renders this value.cycle
- The currentRequestCycle
.- Returns:
- The rendered value.
-
toString
-