Class HostnamePortSpecification

All Implemented Interfaces:
ExtensionPoint, Describable<DomainSpecification>, Serializable

public class HostnamePortSpecification extends DomainSpecification
A 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.
Since:
1.5
See Also:
  • Constructor Details

    • HostnamePortSpecification

      @DataBoundConstructor public HostnamePortSpecification(@CheckForNull String includes, @CheckForNull String excludes)
      Constructor for stapler.
      Parameters:
      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.
  • Method Details

    • getIncludes

      @CheckForNull public String getIncludes()
      Returns the hostname and port combinations to match. A comma separated set of hostname:port with * wildcards supported. null signifies include everything.
      Returns:
      the hostname and port combinations to match.
    • getExcludes

      @CheckForNull public String getExcludes()
      Returns the hostname and port combinations to explicitly not match. A comma separated set of hostname:port with * wildcards supported. null signifies include everything.
      Returns:
      the hostname and port combinations to explicitly not match.
    • test

      @NonNull public DomainSpecification.Result test(@NonNull DomainRequirement requirement)
      Tests the scope against this specification.
      Specified by:
      test in class DomainSpecification
      Parameters:
      requirement - the scope to test.
      Returns:
      the result of the test.