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 class
WebsocketScopeManager.AbstractScope
static class
WebsocketScopeManager.AbstractUserScope
static class
WebsocketScopeManager.ApplicationScope
static class
WebsocketScopeManager.SessionScope
This 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 class
WebsocketScopeManager.ViewScope
This map hold all tokens related to the current view.
-
Field Summary
Fields Modifier and Type Field Description static String
SCOPE_APPLICATION
static String
SCOPE_SESSION
static String
SCOPE_VIEW
-
Constructor Summary
Constructors Constructor Description WebsocketScopeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebsocketScopeManager.ApplicationScope
getApplicationScope(boolean create)
WebsocketScopeManager.AbstractScope
getScope(String scope, boolean create)
WebsocketScopeManager.SessionScope
getSessionScope(boolean create)
WebsocketScopeManager.ViewScope
getViewScope(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)
-
-