Class SchemeSpecification
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<DomainSpecification>
-
- com.cloudbees.plugins.credentials.domains.DomainSpecification
-
- com.cloudbees.plugins.credentials.domains.SchemeSpecification
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<DomainSpecification>
,Serializable
public class SchemeSpecification extends DomainSpecification
ADomainSpecification
that matchesSchemeRequirement
s where the URI scheme is on a list of allowed schemes.- Since:
- 1.5
- See Also:
- RFC-3986 Section 3.1, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SchemeSpecification.DescriptorImpl
OurDescriptor
.-
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.domains.DomainSpecification
DomainSpecification.Result
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SchemeSpecification(String schemes)
Constructor for stapler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
SchemeSpecification
@DataBoundConstructor public SchemeSpecification(@CheckForNull String schemes)
Constructor for stapler.- Parameters:
schemes
- A comma separated list of scheme names.
-
-
Method Detail
-
getSchemes
@CheckForNull public String getSchemes()
Returns the comma separated list of URI schemes that this specification matches.- Returns:
- the comma separated list of URI schemes that this specification matches.
-
test
@NonNull public DomainSpecification.Result test(@NonNull DomainRequirement requirement)
Tests the scope against this specification.- Specified by:
test
in classDomainSpecification
- Parameters:
requirement
- the scope to test.- Returns:
- the result of the test.
-
-