Class SchemeSpecification

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

public class SchemeSpecification extends DomainSpecification
A DomainSpecification that matches SchemeRequirements where the URI scheme is on a list of allowed schemes.
Since:
1.5
See Also:
  • Constructor Details

    • SchemeSpecification

      @DataBoundConstructor public SchemeSpecification(@CheckForNull String schemes)
      Constructor for stapler.
      Parameters:
      schemes - A comma separated list of scheme names.
  • Method Details

    • 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 class DomainSpecification
      Parameters:
      requirement - the scope to test.
      Returns:
      the result of the test.