public interface SimpUser
Modifier and Type | Method and Description |
---|---|
String |
getName()
The unique user name.
|
Principal |
getPrincipal()
Return the user associated with the session, if available.
|
SimpSession |
getSession(String sessionId)
Look up the session for the given id.
|
Set<SimpSession> |
getSessions()
Return the sessions for the user.
|
boolean |
hasSessions()
Whether the user has any sessions.
|
String getName()
@Nullable Principal getPrincipal()
boolean hasSessions()
@Nullable SimpSession getSession(String sessionId)
sessionId
- the session idnull
if none foundSet<SimpSession> getSessions()