Package org.apache.wicket.csp
Class FixedCSPValue
java.lang.Object
org.apache.wicket.csp.FixedCSPValue
- All Implemented Interfaces:
CSPRenderable
A simple CSP value that renders the string specified.
- Author:
- papegaaij
-
Constructor Summary
ConstructorDescriptionFixedCSPValue
(String value) Creates a newFixedCSPValue
for the given value. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks if theCSPRenderable
represents a valid value for a-src
directive.render
(ContentSecurityPolicySettings settings, RequestCycle cycle) Renders the value that should be put in the CSP header.toString()
-
Constructor Details
-
FixedCSPValue
Creates a newFixedCSPValue
for the given value.- Parameters:
value
- the value to render;
-
-
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.
-
checkValidityForSrc
Description copied from interface:CSPRenderable
Checks if theCSPRenderable
represents a valid value for a-src
directive. By default no checks are performed.- Specified by:
checkValidityForSrc
in interfaceCSPRenderable
-
toString
-