public class HostnameSpecification extends DomainSpecification
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.| Modifier and Type | Class and Description |
|---|---|
static class |
HostnameSpecification.DescriptorImpl
Our
Descriptor. |
DomainSpecification.Result| Constructor and Description |
|---|
HostnameSpecification(String includes,
String excludes)
Constructor for stapler.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExcludes()
Returns the hostnames to explicitly not match.
|
String |
getIncludes()
Returns the hostnames to match.
|
DomainSpecification.Result |
test(DomainRequirement requirement)
Tests the scope against this specification.
|
@DataBoundConstructor public HostnameSpecification(String includes, String excludes)
includes - Hostnames to match. A comma separated set of
hostname with * wildcards supported.
null signifies include everything.excludes - Hostnames to explicitly not match. A comma separated set of
hostname with * wildcards supported.
null signifies exclude nothing.@CheckForNull public String getIncludes()
* wildcards supported.
null signifies include everything.@CheckForNull public String getExcludes()
* wildcards supported.
null signifies include everything.@NonNull public DomainSpecification.Result test(@NonNull DomainRequirement requirement)
test in class DomainSpecificationrequirement - the scope to test.Copyright © 2016–2018. All rights reserved.