Package org.htmlunit.csp.directive
Class HostSourceDirective
java.lang.Object
org.htmlunit.csp.Directive
org.htmlunit.csp.directive.HostSourceDirective
- Direct Known Subclasses:
FrameAncestorsDirective
,SourceExpressionDirective
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.csp.Directive
Directive.DirectiveErrorConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private static final String
private boolean
private static final String
private boolean
Fields inherited from class org.htmlunit.csp.Directive
containsNonDirectiveCharacter, IS_DIRECTIVE_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addHostOrSchemeDuringConstruction
(String token, String lowcaseToken, String kind, int index, Directive.DirectiveErrorConsumer errors) private boolean
addHostSource
(Host source, int index, Directive.DirectiveErrorConsumer errors) private boolean
addScheme
(Scheme scheme, int index, Directive.DirectiveErrorConsumer errors) protected void
getHosts()
getNone()
protected void
removeValueIgnoreCase
(String value) boolean
self()
boolean
star()
-
Field Details
-
NONE_SRC
- See Also:
-
SELF_SRC
- See Also:
-
schemes_
-
hosts_
-
star_
private boolean star_ -
self_
private boolean self_ -
none_
-
-
Constructor Details
-
HostSourceDirective
-
-
Method Details
-
getNone
-
addValue
-
removeValueIgnoreCase
- Overrides:
removeValueIgnoreCase
in classDirective
-
addHostOrSchemeDuringConstruction
void addHostOrSchemeDuringConstruction(String token, String lowcaseToken, String kind, int index, Directive.DirectiveErrorConsumer errors) -
addScheme
-
addHostSource
-
star
public boolean star() -
self
public boolean self() -
getSchemes
-
getHosts
-