Package io.jmix.aichat.component.chat
Class AiChat.CurrentSessionAttributes
- Enclosing class:
AiChat<T extends AiChatMessage>
A live view of the current Vaadin session's HTTP session attributes, resolved on every read
rather than copied — see
AiChat.runWithGenerationContext(com.vaadin.flow.server.VaadinRequest, java.lang.Runnable) for why that matters.
Reads and writes pass straight through, and answer as an empty map whenever no HTTP session
is reachable.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, 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, remove, replace, replace, replaceAll
-
Constructor Details
-
CurrentSessionAttributes
protected CurrentSessionAttributes()
-
-
Method Details
-
attribute
-
get
-
put
-
entrySet
-