java.lang.Object
org.htmlunit.csp.Directive
org.htmlunit.csp.directive.ReportUriDirective
Represents the (deprecated)
report-uri CSP directive.
The report-uri directive specifies one or more URIs to which the
user agent sends violation reports. It has been deprecated in favour of the
report-to directive.
Duplicate URIs are permitted because they have actual semantic meaning: the report will be sent to the same endpoint multiple times (once per occurrence), per specification.
- Author:
- Salvation Team
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.csp.Directive
Directive.DirectiveErrorConsumer -
Field Summary
Fields inherited from class org.htmlunit.csp.Directive
IS_DIRECTIVE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionReportUriDirective(List<String> values, Directive.DirectiveErrorConsumer errors) Parses areport-uridirective from the given list of URI values. -
Method Summary
Methods inherited from class org.htmlunit.csp.Directive
addValue, containsNonDirectiveCharacter, getValues, removeValueIgnoreCase
-
Constructor Details
-
ReportUriDirective
Parses areport-uridirective from the given list of URI values.At least one URI is required. Duplicate URIs produce an informational message (not an error) since they are semantically valid.
- Parameters:
values- the raw string values (URIs) for this directiveerrors- consumer that receives parsing errors and warnings
-
-
Method Details
-
getUris
Returns an unmodifiable list of the report URIs specified in this directive.The list may contain duplicates, which have semantic meaning (the report is sent once per URI occurrence).
- Returns:
- the list of report URI strings
-