public class SchemeSpecification extends DomainSpecification
DomainSpecification
that matches SchemeRequirement
s where the URI scheme is on a whitelist
of schemes.Modifier and Type | Class and Description |
---|---|
static class |
SchemeSpecification.DescriptorImpl
Our
Descriptor . |
DomainSpecification.Result
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
SchemeSpecification(String schemes)
Constructor for stapler.
|
Modifier and Type | Method and Description |
---|---|
String |
getSchemes()
Returns the comma separated list of URI schemes that this specification matches.
|
DomainSpecification.Result |
test(DomainRequirement requirement)
Tests the scope against this specification.
|
getDescriptor
@DataBoundConstructor public SchemeSpecification(@CheckForNull String schemes)
schemes
- A comma separated list of scheme names.@CheckForNull public String getSchemes()
@NonNull public DomainSpecification.Result test(@NonNull DomainRequirement requirement)
test
in class DomainSpecification
requirement
- the scope to test.Copyright © 2016–2021. All rights reserved.