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.String
none_
private static java.lang.String
NONE_SRC
private java.util.List<Scheme>
schemes_
private boolean
self_
private static java.lang.String
SELF_SRC
private boolean
star_
-
Fields inherited from class org.htmlunit.csp.Directive
containsNonDirectiveCharacter, IS_DIRECTIVE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HostSourceDirective(java.util.List<java.lang.String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addHostOrSchemeDuringConstruction(java.lang.String token, java.lang.String lowcaseToken, java.lang.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
addValue(java.lang.String value)
java.util.List<Host>
getHosts()
java.lang.String
getNone()
java.util.List<Scheme>
getSchemes()
protected void
removeValueIgnoreCase(java.lang.String value)
boolean
self()
boolean
star()
-
-
-
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:
removeValueIgnoreCase
in 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()
-
-