public class LocalSessionManagementStrategy extends Object implements SessionManagementStrategy
Constructor and Description |
---|
LocalSessionManagementStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all sessions.
|
Collection<javax.servlet.http.HttpSession> |
getAll()
Returns a collection containing all sessions.
|
javax.servlet.http.HttpSession |
remove(String id)
The unique identifier for the session to remove.
|
void |
store(javax.servlet.http.HttpSession session)
Stores the given session.
|
public void clear()
SessionManagementStrategy
clear
in interface SessionManagementStrategy
public Collection<javax.servlet.http.HttpSession> getAll()
SessionManagementStrategy
getAll
in interface SessionManagementStrategy
Collection
of all known HttpSession
s, if any;
an empty Collection
otherwisepublic void store(javax.servlet.http.HttpSession session)
SessionManagementStrategy
store
in interface SessionManagementStrategy
session
- the HttpSession
to store (required)public javax.servlet.http.HttpSession remove(String id)
SessionManagementStrategy
remove
in interface SessionManagementStrategy
id
- the unique identifier for the session to remove (required)HttpSession
if it exists; null
otherwiseCopyright © 2021 JBoss by Red Hat. All rights reserved.