Package org.apache.myfaces.push.cdi
Class WebsocketScopeManager
- java.lang.Object
-
- org.apache.myfaces.push.cdi.WebsocketScopeManager
-
@ApplicationScoped public class WebsocketScopeManager extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebsocketScopeManager.AbstractScopestatic classWebsocketScopeManager.AbstractUserScopestatic classWebsocketScopeManager.ApplicationScopestatic classWebsocketScopeManager.SessionScopeThis map holds all tokens related to the current session and its associated metadata, that will be used in the websocket handshake to validate if the incoming request is valid and to store the user object into the Session object.static classWebsocketScopeManager.ViewScopeThis map hold all tokens related to the current view.
-
Field Summary
Fields Modifier and Type Field Description static StringSCOPE_APPLICATIONstatic StringSCOPE_SESSIONstatic StringSCOPE_VIEW
-
Constructor Summary
Constructors Constructor Description WebsocketScopeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebsocketScopeManager.ApplicationScopegetApplicationScope(boolean create)WebsocketScopeManager.AbstractScopegetScope(String scope, boolean create)WebsocketScopeManager.SessionScopegetSessionScope(boolean create)WebsocketScopeManager.ViewScopegetViewScope(boolean create)
-
-
-
Field Detail
-
SCOPE_APPLICATION
public static final String SCOPE_APPLICATION
- See Also:
- Constant Field Values
-
SCOPE_SESSION
public static final String SCOPE_SESSION
- See Also:
- Constant Field Values
-
SCOPE_VIEW
public static final String SCOPE_VIEW
- See Also:
- Constant Field Values
-
-
Method Detail
-
getScope
public WebsocketScopeManager.AbstractScope getScope(String scope, boolean create)
-
getApplicationScope
public WebsocketScopeManager.ApplicationScope getApplicationScope(boolean create)
-
getSessionScope
public WebsocketScopeManager.SessionScope getSessionScope(boolean create)
-
getViewScope
public WebsocketScopeManager.ViewScope getViewScope(boolean create)
-
-