Class PathSpecification
java.lang.Object
hudson.model.AbstractDescribableImpl<DomainSpecification>
com.cloudbees.plugins.credentials.domains.DomainSpecification
com.cloudbees.plugins.credentials.domains.PathSpecification
- All Implemented Interfaces:
ExtensionPoint,Describable<DomainSpecification>,Serializable
A
DomainSpecification that matches PathRequirements where the URI path is on a list
of allowed paths.- Since:
- 1.12
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.cloudbees.plugins.credentials.domains.DomainSpecification
DomainSpecification.ResultNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionPathSpecification(String includes, String excludes, boolean caseSensitive) Constructor for stapler. -
Method Summary
Modifier and TypeMethodDescriptionReturns the paths to explicitly not match.Returns the paths to match.booleantest(DomainRequirement requirement) Tests the scope against this specification.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
PathSpecification
@DataBoundConstructor public PathSpecification(@CheckForNull String includes, @CheckForNull String excludes, boolean caseSensitive) Constructor for stapler.- Parameters:
includes- Paths to match. A comma separated set of path with*wildcards supported.nullsignifies include everything.excludes- Paths to explicitly not match. A comma separated set of path with*wildcards supported.nullsignifies exclude nothing.caseSensitive-trueif the path match should be case sensitive.
-
-
Method Details
-
getIncludes
Returns the paths to match. A whitespace separated set of path with*wildcards supported.nullsignifies include everything.- Returns:
- the paths to match.
-
getExcludes
Returns the paths to explicitly not match. A comma separated set of path with*wildcards supported.nullsignifies include everything.- Returns:
- the paths to explicitly not match.
-
isCaseSensitive
public boolean isCaseSensitive() -
test
Tests the scope against this specification.- Specified by:
testin classDomainSpecification- Parameters:
requirement- the scope to test.- Returns:
- the result of the test.
-