Package com.vaadin.browserless.mocks
Class SessionAttributeMap
A live map of all attributes in this session. Modifications to the map will
be reflected to the session and vice versa.
For internal use only. May be renamed or removed in a future release.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionSessionAttributeMap(jakarta.servlet.http.HttpSession session) Exposes the given session's attributes as a map. -
Method Summary
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, keySet, putAll, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, replace, replace, replaceAll
-
Constructor Details
-
SessionAttributeMap
public SessionAttributeMap(jakarta.servlet.http.HttpSession session) Exposes the given session's attributes as a map.- Parameters:
session- the session to wrap
-
-
Method Details
-
entrySet
-
get
-
put
-
remove
-
remove
-
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object> - Overrides:
containsKeyin classAbstractMap<String,Object>
-