public abstract class HostSourceDirective extends Directive
Directive.DirectiveErrorConsumer, Directive.ManipulationErrorConsumer| Modifier and Type | Field and Description |
|---|---|
protected List<Host> |
hosts |
protected String |
none |
protected List<Scheme> |
schemes |
protected boolean |
self |
protected boolean |
star |
containsNonDirectiveCharacter, values| Modifier | Constructor and Description |
|---|---|
protected |
HostSourceDirective(List<String> values) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHost(Host host,
Directive.ManipulationErrorConsumer errors) |
void |
addScheme(Scheme scheme,
Directive.ManipulationErrorConsumer errors) |
protected void |
addValue(String value) |
List<Host> |
getHosts() |
List<Scheme> |
getSchemes() |
boolean |
removeHost(Host host) |
boolean |
removeScheme(Scheme scheme) |
protected void |
removeValueIgnoreCase(String value) |
protected <T> void |
removeValuesMatching(T value,
java.util.function.Function<String,Optional<T>> parser) |
boolean |
self() |
void |
setSelf(boolean self) |
void |
setStar(boolean star) |
boolean |
star() |
getValues, wrapManipulationErrorConsumerprotected boolean star
protected boolean self
protected String none
protected void removeValueIgnoreCase(String value)
removeValueIgnoreCase in class Directiveprotected <T> void removeValuesMatching(T value,
java.util.function.Function<String,Optional<T>> parser)
public boolean star()
public void setStar(boolean star)
public boolean self()
public void setSelf(boolean self)
public void addScheme(Scheme scheme, Directive.ManipulationErrorConsumer errors)
public boolean removeScheme(Scheme scheme)
public void addHost(Host host, Directive.ManipulationErrorConsumer errors)
public boolean removeHost(Host host)
Copyright © 2020. All rights reserved.