Class WebRequirement
java.lang.Object
de.craftsblock.craftsnet.api.requirements.Requirement<Request,RouteRegistry.EndpointMapping>
de.craftsblock.craftsnet.api.requirements.web.WebRequirement
- Direct Known Subclasses:
BodyRequirement,ContentTypeRequirement,CookieRequirement,HeadersRequirement,HTTPDomainRequirement,MethodRequirement,QueryParameterRequirement
Abstract class representing a web specific requirement.
- Since:
- 3.0.5-SNAPSHOT
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWebRequirement(Class<? extends Annotation> annotation) Constructs a new web requirement with the specified annotation class. -
Method Summary
Methods inherited from class de.craftsblock.craftsnet.api.requirements.Requirement
applies, getAnnotation
-
Constructor Details
-
WebRequirement
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
-