java.lang.Object
com.sun.faces.push.WebsocketUserManager
This web socket user manager holds all web socket users registered by <f:websocket>
.
- Since:
- 2.3
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addChannelId
(String userId, String channel, String channelId) Add user channel ID associated with given session based user ID and channel name.protected void
deregister
(Serializable user, String userId) Deregister application user associated with given user and session based user ID.getChannelIds
(Serializable user, String channel) Resolve the user-specific channel IDs associated with given user and channel name.protected Serializable
Resolve the user associated with given channel name and ID.protected void
register
(Serializable user, String userId) Register application user based on given user and session based user ID.
-
Constructor Details
-
WebsocketUserManager
public WebsocketUserManager()
-
-
Method Details
-
register
Register application user based on given user and session based user ID.- Parameters:
user
- The user.userId
- The session based user ID.
-
addChannelId
-
getUser
Resolve the user associated with given channel name and ID.- Parameters:
channel
- The channel name.channelId
- The channel identifier.- Returns:
- The user associated with given channel name and ID.
-
getChannelIds
Resolve the user-specific channel IDs associated with given user and channel name.- Parameters:
user
- The user.channel
- The channel name.- Returns:
- The user-specific channel IDs associated with given user and channel name.
-
deregister
Deregister application user associated with given user and session based user ID.- Parameters:
user
- The user.userId
- The session based user ID.
-