public class DefaultUserDestinationResolver extends Object implements UserDestinationResolver
UserDestinationResolver.
Uses the UserSessionRegistry
provided to the constructor to find the sessionIds associated with a user.
| Constructor and Description |
|---|
DefaultUserDestinationResolver(UserSessionRegistry userSessionRegistry)
Create an instance that will access user session id information through
the provided registry.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkDestination(String destination,
String requiredPrefix) |
String |
getDestinationPrefix()
Return the prefix used to identify user destinations.
|
protected String |
getTargetDestination(String origDestination,
String targetDestination,
String sessionId,
String user) |
UserSessionRegistry |
getUserSessionRegistry()
Return the configured
UserSessionRegistry. |
Set<String> |
resolveDestination(Message<?> message)
Resolve the destination of the message to a set of actual target destinations
to use.
|
void |
setUserDestinationPrefix(String prefix)
The prefix used to identify user destinations.
|
public DefaultUserDestinationResolver(UserSessionRegistry userSessionRegistry)
userSessionRegistry - the registry, never nullpublic void setUserDestinationPrefix(String prefix)
The default value is "/user/".
prefix - the prefix to usepublic String getDestinationPrefix()
By default "/user/queue/".
public UserSessionRegistry getUserSessionRegistry()
UserSessionRegistry.public Set<String> resolveDestination(Message<?> message)
UserDestinationResolverresolveDestination in interface UserDestinationResolvermessage - the message to resolve