public class UserDestinationResult extends Object
UserDestinationResolver
Constructor and Description |
---|
UserDestinationResult(String sourceDestination,
Set<String> targetDestinations,
String subscribeDestination,
String user) |
Modifier and Type | Method and Description |
---|---|
String |
getSourceDestination()
The "user" destination from the source message.
|
String |
getSubscribeDestination()
The user destination in the form expected when a client subscribes, e.g.
|
Set<String> |
getTargetDestinations()
The target destinations that the source destination was translated to,
one per active user session, e.g.
|
String |
getUser()
The user for this user destination.
|
String |
toString() |
public String getSourceDestination()
null
.public Set<String> getTargetDestinations()
null
but possibly an empty
set if there are no active sessions for the user.public String getSubscribeDestination()
null
.@Nullable public String getUser()
null
if we have a session id only such as
when the user is not authenticated; in such cases it is possible to use
sessionId in place of a user name thus removing the need for a user-to-session
lookup via SimpUserRegistry
.