IngressDestinationVariable

annotation class IngressDestinationVariable(val token: String, val value: String = "")(source)

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)

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.

Properties

Link copied to clipboard

The token that should be mapped into this position.

Link copied to clipboard

The name of the destination template variable to bind to.