Annotation Interface ApplyDecoder
Specifies a
WebSocketSafeTypeDecoder to be applied to the second parameter
of a WebSocket handler method.
This annotation allows developers to automatically decode an incoming WebSocket
Frame into a specific Java type before the method is invoked.
The annotated method must have at least two parameters. The decoder will be used to process
the second parameter from the Frame.
- Since:
- 3.5.0
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends WebSocketSafeTypeDecoder<?>>TheWebSocketSafeTypeDecoderclass used to decode the second parameter.
-
Element Details
-
value
Class<? extends WebSocketSafeTypeDecoder<?>> valueTheWebSocketSafeTypeDecoderclass used to decode the second parameter.- Returns:
- the decoder class
-