Package org.apache.myfaces.push.cdi
Class WebsocketApplicationBean
- java.lang.Object
- 
- org.apache.myfaces.push.cdi.WebsocketApplicationBean
 
- 
 @ApplicationScoped public class WebsocketApplicationBean extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description WebsocketApplicationBean()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getChannelTokensFor(String channel)<S extends Serializable>
 List<String>getChannelTokensFor(String channel, S user)booleanisChannelAvailable(String channel)Indicate if the channel mentioned is valid for view scope.voidregisterWebsocketSession(String token, WebsocketChannelMetadata metadata)
 
- 
- 
- 
Method Detail- 
registerWebsocketSessionpublic void registerWebsocketSession(String token, WebsocketChannelMetadata metadata) 
 - 
isChannelAvailablepublic boolean isChannelAvailable(String channel) Indicate if the channel mentioned is valid for view scope. A channel is valid if there is at least one token that represents a valid connection to this channel.- Parameters:
- channel-
- Returns:
 
 - 
getChannelTokensForpublic <S extends Serializable> List<String> getChannelTokensFor(String channel, S user) 
 
- 
 
-