|
@@ -28,6 +28,11 @@ public class SimpleHttpSessionManager extends AbstractHttpSessionManager {
|
|
*/
|
|
*/
|
|
private static final ConcurrentMap<String, HttpSession> userSessionStorage = new ConcurrentHashMap<>();
|
|
private static final ConcurrentMap<String, HttpSession> userSessionStorage = new ConcurrentHashMap<>();
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public HttpSession getSessionBySessionId(String sessionId) {
|
|
|
|
+ return sessionStorage.get(sessionId);
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public Set<User> tryGetAllUser() {
|
|
public Set<User> tryGetAllUser() {
|
|
return userSessionStorage.values().stream().map(httpSession -> (User) httpSession.getAttribute("user"))
|
|
return userSessionStorage.values().stream().map(httpSession -> (User) httpSession.getAttribute("user"))
|