public class UserDestinationResult
extends java.lang.Object
UserDestinationResolver
Constructor and Description |
---|
UserDestinationResult(java.lang.String sourceDestination,
java.util.Set<java.lang.String> targetDestinations,
java.lang.String subscribeDestination,
java.lang.String user) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSourceDestination()
The "user" destination from the source message.
|
java.lang.String |
getSubscribeDestination()
The user destination in the form expected when a client subscribes, e.g.
|
java.util.Set<java.lang.String> |
getTargetDestinations()
The target destinations that the source destination was translated to,
one per active user session, e.g.
|
java.lang.String |
getUser()
The user for this user destination.
|
java.lang.String |
toString() |
public UserDestinationResult(java.lang.String sourceDestination, java.util.Set<java.lang.String> targetDestinations, java.lang.String subscribeDestination, java.lang.String user)
public java.lang.String getSourceDestination()
null
.public java.util.Set<java.lang.String> getTargetDestinations()
null
but possibly an empty
set if there are no active sessions for the user.public java.lang.String getSubscribeDestination()
null
.public java.lang.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
.public java.lang.String toString()
toString
in class java.lang.Object