public class PathSpecification extends DomainSpecification
DomainSpecification that matches PathRequirements where the URI path is on a whitelist
of paths.| Modifier and Type | Class and Description |
|---|---|
static class |
PathSpecification.DescriptorImpl
Our
Descriptor. |
DomainSpecification.Result| Constructor and Description |
|---|
PathSpecification(String includes,
String excludes,
boolean caseSensitive)
Constructor for stapler.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExcludes()
Returns the paths to explicitly not match.
|
String |
getIncludes()
Returns the paths to match.
|
boolean |
isCaseSensitive() |
DomainSpecification.Result |
test(DomainRequirement requirement)
Tests the scope against this specification.
|
@DataBoundConstructor public PathSpecification(String includes, String excludes, boolean caseSensitive)
includes - Paths to match. A comma separated set of
path with * wildcards supported.
null signifies include everything.excludes - Paths to explicitly not match. A comma separated set of
path with * wildcards supported.
null signifies exclude nothing.caseSensitive - true if the path match should be case sensitive.@CheckForNull public String getIncludes()
* wildcards supported.
null signifies include everything.@CheckForNull public String getExcludes()
* wildcards supported.
null signifies include everything.public boolean isCaseSensitive()
@NonNull public DomainSpecification.Result test(@NonNull DomainRequirement requirement)
test in class DomainSpecificationrequirement - the scope to test.Copyright © 2016–2018. All rights reserved.