Class WebSocketRequirement<T extends RequireAble>
java.lang.Object
de.craftsblock.craftsnet.api.requirements.Requirement<T,RouteRegistry.EndpointMapping>
de.craftsblock.craftsnet.api.requirements.websocket.WebSocketRequirement<T>
- Direct Known Subclasses:
MessageTypeRequirement,WSDomainRequirement
public abstract class WebSocketRequirement<T extends RequireAble>
extends Requirement<T,RouteRegistry.EndpointMapping>
Abstract class representing a websocket specific requirement.
- Since:
- 3.0.5-SNAPSHOT
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWebSocketRequirement(Class<? extends Annotation> annotation) Constructs a new websocket requirement with the specified annotation class. -
Method Summary
Methods inherited from class de.craftsblock.craftsnet.api.requirements.Requirement
applies, getAnnotation
-
Constructor Details
-
WebSocketRequirement
Constructs a new websocket 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
-