Class WebRequirement

Direct Known Subclasses:
BodyRequirement, ContentTypeRequirement, CookieRequirement, HeadersRequirement, HTTPDomainRequirement, MethodRequirement, QueryParameterRequirement

public abstract class WebRequirement extends Requirement<Request,RouteRegistry.EndpointMapping>
Abstract class representing a web specific requirement.
Since:
3.0.5-SNAPSHOT
See Also:
  • Constructor Details

    • WebRequirement

      public WebRequirement(Class<? extends Annotation> annotation)
      Constructs a new web requirement with the specified annotation class. The annotation will be used to determine the requirement on the methods of endpoints.
      Parameters:
      annotation - the annotation class that this requirement is associated with