Class HostnameSpecification
java.lang.Object
hudson.model.AbstractDescribableImpl<DomainSpecification>
com.cloudbees.plugins.credentials.domains.DomainSpecification
com.cloudbees.plugins.credentials.domains.HostnameSpecification
- All Implemented Interfaces:
ExtensionPoint,Describable<DomainSpecification>,Serializable
A
DomainSpecification that matches HostnameRequirement where
the hostname is on an includes list but not on an excludes
list. The includes and excludes lists are comma separated
hostname with * wildcards supported.- Since:
- 1.5
- 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
ConstructorsConstructorDescriptionHostnameSpecification(String includes, String excludes) Constructor for stapler. -
Method Summary
Modifier and TypeMethodDescriptionReturns the hostnames to explicitly not match.Returns the hostnames to match.test(DomainRequirement requirement) Tests the scope against this specification.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
HostnameSpecification
@DataBoundConstructor public HostnameSpecification(@CheckForNull String includes, @CheckForNull String excludes) Constructor for stapler.- Parameters:
includes- Hostnames to match. A comma separated set of hostname with*wildcards supported.nullsignifies include everything.excludes- Hostnames to explicitly not match. A comma separated set of hostname with*wildcards supported.nullsignifies exclude nothing.
-
-
Method Details
-
getIncludes
Returns the hostnames to match. A comma separated set of hostname with*wildcards supported.nullsignifies include everything.- Returns:
- the hostnames to match.
-
getExcludes
Returns the hostnames to explicitly not match. A comma separated set of hostname with*wildcards supported.nullsignifies include everything.- Returns:
- the hostnames to explicitly not match.
-
test
Tests the scope against this specification.- Specified by:
testin classDomainSpecification- Parameters:
requirement- the scope to test.- Returns:
- the result of the test.
-