Interface WebUiSessionManager
- All Superinterfaces:
SessionManager
A
SessionManager
which manages WebUiSession
instances-
Method Summary
Modifier and TypeMethodDescriptionOptional<? extends WebUiSession>
findSession
(RequestContext requestContext) Finds theWebUiSession
given aRequestContext
.Optional<? extends WebUiSession>
getSession
(String id) Get aSession
managed by thisSessionManager
.Collection<? extends WebUiSession>
-
Method Details
-
getSessions
Collection<? extends WebUiSession> getSessions()- Specified by:
getSessions
in interfaceSessionManager
- Returns:
- an unmodifiable
Collection
ofSession
instances managed by thisSessionManager
. never null. collection elements are never null.
-
getSession
Description copied from interface:SessionManager
Get aSession
managed by thisSessionManager
.- Specified by:
getSession
in interfaceSessionManager
- Parameters:
id
- the session ID- Returns:
- an
Optional
containing theSession
associated with the given ID, or an empty Optional if no Session exists with the given ID
-
findSession
Finds theWebUiSession
given aRequestContext
. Looks up the session via HTTP cookies or other implementation-specific session tracking mechanisms.- Parameters:
requestContext
- theRequestContext
- Returns:
- an
Optional
containing theWebUiSession
tracked by the givenRequestContext
, or an empty Optional if no WebUiSession is associated with the given RequestContext
-