org.springframework.messaging.simp.user.UserDestinationResolver
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final String | |
| private final String | |
| private final Set | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public String | Returns: the "user" destination, nevernull.The "user" destination from the source message. |
| public String | Returns: the subscribe form of the "user" destination, nevernull.The user destination in the form expected when a client subscribes, e.g. "/user/queue/position-updates". |
| public Set | Returns: the target destinations, nevernull but possibly an empty
set if there are no active sessions for the user.The target destinations that the source destination was translated to, one per active user session, e.g. "/queue/position-updates-useri9oqdfzo". |
| public String | Returns: the user name ornull 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.The user for this user destination. |
| public String |
| sessionIds | back to summary |
|---|---|
| private final Set<String> sessionIds | |
| sourceDestination | back to summary |
|---|---|
| private final String sourceDestination | |
| subscribeDestination | back to summary |
|---|---|
| private final String subscribeDestination | |
| targetDestinations | back to summary |
|---|---|
| private final Set<String> targetDestinations | |
| user | back to summary |
|---|---|
| private final String user
| |
| UserDestinationResult | back to summary |
|---|---|
| public UserDestinationResult(String sourceDestination, Set<String> targetDestinations, String subscribeDestination, String user) | |
| UserDestinationResult | back to summary |
|---|---|
| public UserDestinationResult(String sourceDestination, Set<String> targetDestinations, String subscribeDestination, String user, Set<String> sessionIds) Additional constructor with the session id for each targetDestination.
| |
| getSessionIds | back to summary |
|---|---|
| public Set Return the session id for the targetDestination.
| |
| getSourceDestination | back to summary |
|---|---|
| public String getSourceDestination() The "user" destination from the source message. This may look like "/user/queue/position-updates" when subscribing or "/user/{username}/queue/position-updates" when sending a message.
| |
| getSubscribeDestination | back to summary |
|---|---|
| public String getSubscribeDestination() The user destination in the form expected when a client subscribes, e.g. "/user/queue/position-updates".
| |
| getTargetDestinations | back to summary |
|---|---|
| public Set The target destinations that the source destination was translated to, one per active user session, e.g. "/queue/position-updates-useri9oqdfzo". | |
| getUser | back to summary |
|---|---|
| public String getUser() The user for this user destination.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |