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