public class HostnamePortSpecification extends DomainSpecification
DomainSpecification that matches HostnamePortRequirement and HostnameRequirement where
the hostname:port is on an includes list but not on an excludes
list. The includes and excludes lists are comma separated
hostname:port with * wildcards supported.| Modifier and Type | Class and Description |
|---|---|
static class |
HostnamePortSpecification.DescriptorImpl
Our
Descriptor. |
DomainSpecification.Result| Constructor and Description |
|---|
HostnamePortSpecification(String includes,
String excludes)
Constructor for stapler.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExcludes()
Returns the hostname and port combinations to explicitly not match.
|
String |
getIncludes()
Returns the hostname and port combinations to match.
|
DomainSpecification.Result |
test(DomainRequirement requirement)
Tests the scope against this specification.
|
@DataBoundConstructor
public HostnamePortSpecification(@CheckForNull
String includes,
@CheckForNull
String excludes)
includes - Hostname and port combinations to match. A comma separated set of
hostname:port with * wildcards supported.
null signifies include everything.excludes - Hostname and port combinations to explicitly not match. A comma separated set of
hostname:port with * wildcards supported.
null signifies exclude nothing.@CheckForNull public String getIncludes()
:port with * wildcards supported.
null signifies include everything.@CheckForNull public String getExcludes()
:port with * 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.