com.vaadin.flow.spring.
Class SpringVaadinSession
All Implemented Interfaces:
jakarta.servlet.http.HttpSessionBindingListener
, Serializable
, EventListener
Direct Known Subclasses:
Vaadin session implementation for Spring.
Author:
Vaadin Ltd
See Also:
-
Field Summary
Fields inherited from class com.vaadin.flow.server.VaadinSession
browser
-
Constructor Summary
ConstructorsConstructorDescriptionSpringVaadinSession
(VaadinService service) Deprecated, for removal: This API element is subject to removal in a future version.
Creates a new SpringVaadinSession tied to a VaadinService.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDestroyListener
(SessionDestroyListener listener) Deprecated, for removal: This API element is subject to removal in a future version.
Adds a listener that gets notified when the Vaadin service session is destroyed.
void
Deprecated, for removal: This API element is subject to removal in a future version.
Handles destruction of the session.
Methods inherited from class com.vaadin.flow.server.VaadinSession
access, accessSynchronously, addRequestHandler, addSessionDestroyListener, addUI, checkHasLock, checkHasLock, checkSetConfiguration, close, createStreamResourceRegistry, findElement, getAllSessions, getAttribute, getAttribute, getBrowser, getConfiguration, getCumulativeRequestDuration, getCurrent, getErrorHandler, getLastLocked, getLastRequestDuration, getLastRequestTimestamp, getLastUnlocked, getLocale, getLockInstance, getNextUIid, getPendingAccessQueue, getPushId, getRequestHandlers, getResourceRegistry, getService, getSession, getState, getUIById, getUIs, hasLock, hasLock, lock, refreshTransients, removeRequestHandler, removeUI, setAttribute, setAttribute, setBrowser, setConfiguration, setCurrent, setErrorHandler, setLastRequestDuration, setLastRequestTimestamp, setLocale, setState, unlock, valueBound, valueUnbound
-
Constructor Details
-
SpringVaadinSession
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new SpringVaadinSession tied to a VaadinService.
Parameters:
service
- the Vaadin service for the new session
-
-
Method Details
-
fireSessionDestroy
public void fireSessionDestroy()Deprecated, for removal: This API element is subject to removal in a future version.Handles destruction of the session.
-
addDestroyListener
Deprecated, for removal: This API element is subject to removal in a future version.Adds a listener that gets notified when the Vaadin service session is destroyed.
No need to remove the listener since all listeners are removed automatically once session is destroyed
The session being destroyed is locked and its UIs have been removed when the listeners are called.
Parameters:
listener
- the vaadin service session destroy listenerSee Also:
-