IngressDestinationVariable
An annotation that extends the behavior of DestinationVariable to enable ingress mapping.
This annotation can be used to define a destination template variable to extract, along with the token that should be mapped into this position on ingress by Liberator.
Example usage:
@MessageMapping("/mystream/{userId}")
fun myStream(@IngressDestinationVariable(IngressToken.USER_ID) userId: String)
Content copied to clipboard
See Liberator's object-map configuration.
Parameters
value
The name of the destination template variable to bind to.
token
The token that should be mapped into this position on ingress by Liberator. Built-in tokens are defined as constants under IngressToken.