Package org.htmlunit.csp.directive
Class HostSourceDirective
- java.lang.Object
-
- org.htmlunit.csp.Directive
-
- org.htmlunit.csp.directive.HostSourceDirective
-
- Direct Known Subclasses:
FrameAncestorsDirective,SourceExpressionDirective
public abstract class HostSourceDirective extends Directive
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.htmlunit.csp.Directive
Directive.DirectiveErrorConsumer
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Host>hosts_private java.lang.Stringnone_private static java.lang.StringNONE_SRCprivate java.util.List<Scheme>schemes_private booleanself_private static java.lang.StringSELF_SRCprivate booleanstar_-
Fields inherited from class org.htmlunit.csp.Directive
containsNonDirectiveCharacter, IS_DIRECTIVE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHostSourceDirective(java.util.List<java.lang.String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddHostOrSchemeDuringConstruction(java.lang.String token, java.lang.String lowcaseToken, java.lang.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 voidaddValue(java.lang.String value)java.util.List<Host>getHosts()java.lang.StringgetNone()java.util.List<Scheme>getSchemes()protected voidremoveValueIgnoreCase(java.lang.String value)booleanself()booleanstar()
-
-
-
Field Detail
-
NONE_SRC
private static final java.lang.String NONE_SRC
- See Also:
- Constant Field Values
-
SELF_SRC
private static final java.lang.String SELF_SRC
- See Also:
- Constant Field Values
-
schemes_
private java.util.List<Scheme> schemes_
-
hosts_
private java.util.List<Host> hosts_
-
star_
private boolean star_
-
self_
private boolean self_
-
none_
private java.lang.String none_
-
-
Method Detail
-
getNone
public java.lang.String getNone()
-
removeValueIgnoreCase
protected void removeValueIgnoreCase(java.lang.String value)
- Overrides:
removeValueIgnoreCasein classDirective
-
addHostOrSchemeDuringConstruction
void addHostOrSchemeDuringConstruction(java.lang.String token, java.lang.String lowcaseToken, java.lang.String kind, int index, Directive.DirectiveErrorConsumer errors)
-
addScheme
private boolean addScheme(Scheme scheme, int index, Directive.DirectiveErrorConsumer errors)
-
addHostSource
private boolean addHostSource(Host source, int index, Directive.DirectiveErrorConsumer errors)
-
star
public boolean star()
-
self
public boolean self()
-
getSchemes
public java.util.List<Scheme> getSchemes()
-
getHosts
public java.util.List<Host> getHosts()
-
-