Package org.apache.wicket.csp
Class ClonedCSPValue
- java.lang.Object
-
- org.apache.wicket.csp.ClonedCSPValue
-
- All Implemented Interfaces:
CSPRenderable
public class ClonedCSPValue extends Object implements CSPRenderable
A CSP value that renders the same value as rendered for the specified directive.- Author:
- papegaaij
-
-
Constructor Summary
Constructors Constructor Description ClonedCSPValue(CSPHeaderConfiguration headerConfiguration, CSPDirective sourceDirective)
Creates a newClonedCSPValue
for the given directive.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
render(ContentSecurityPolicySettings settings, RequestCycle cycle)
Renders the value that should be put in the CSP header.String
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 Detail
-
ClonedCSPValue
public ClonedCSPValue(CSPHeaderConfiguration headerConfiguration, CSPDirective sourceDirective)
Creates a newClonedCSPValue
for the given directive.- Parameters:
headerConfiguration
- the header to clone from;sourceDirective
- the directive to clone;
-
-
Method Detail
-
render
public String render(ContentSecurityPolicySettings settings, RequestCycle cycle)
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.
-
-