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 Directive
Directive.DirectiveErrorConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate static final Stringprivate booleanprivate static final Stringprivate booleanFields inherited from class Directive
containsNonDirectiveCharacter, IS_DIRECTIVE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddHostOrSchemeDuringConstruction(String token, String lowcaseToken, String kind, int index, Directive.DirectiveErrorConsumer errors) private booleanaddHostSource(Host source, int index, Directive.DirectiveErrorConsumer errors) private booleanaddScheme(Scheme scheme, int index, Directive.DirectiveErrorConsumer errors) protected voidgetHosts()getNone()protected voidremoveValueIgnoreCase(String value) booleanself()booleanstar()
-
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:
removeValueIgnoreCasein 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
-