Uses of Class
com.vaadin.flow.server.VaadinSession
Packages that use VaadinSession
Package
Description
-
Uses of VaadinSession in com.vaadin.base.devserver
Methods in com.vaadin.base.devserver with parameters of type VaadinSessionModifier and TypeMethodDescriptionboolean
AbstractDevServerRunner.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) boolean
DevBundleBuildingHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) -
Uses of VaadinSession in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return VaadinSessionModifier and TypeMethodDescriptionUI.getSession()
Gets the VaadinSession to which this UI is attached. -
Uses of VaadinSession in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal that return VaadinSessionModifier and TypeMethodDescriptionAbstractAttachDetachEvent.getSession()
Gets the session the component is attached to.UIInternals.getSession()
Gets the VaadinSession to which the related UI is attached.Methods in com.vaadin.flow.component.internal with parameters of type VaadinSessionModifier and TypeMethodDescriptionvoid
UIInternals.setSession
(VaadinSession session) Sets the session to which the related UI is assigned.Constructors in com.vaadin.flow.component.internal with parameters of type VaadinSessionModifierConstructorDescriptionCreates a new deadlock detecting completable future tied to the given session. -
Uses of VaadinSession in com.vaadin.flow.hotswap
Methods in com.vaadin.flow.hotswap with parameters of type VaadinSessionModifier and TypeMethodDescriptiondefault boolean
VaadinHotswapper.onClassLoadEvent
(VaadinSession vaadinSession, Set<Class<?>> classes, boolean redefined) Called by Vaadin hotswap entry point when one or more application classes have been updated. -
Uses of VaadinSession in com.vaadin.flow.i18n
Methods in com.vaadin.flow.i18n with parameters of type VaadinSessionModifier and TypeMethodDescriptionboolean
TranslationFileRequestHandler.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) -
Uses of VaadinSession in com.vaadin.flow.internal
Methods in com.vaadin.flow.internal with parameters of type VaadinSessionModifier and TypeMethodDescriptionstatic String
BootstrapHandlerHelper.determinePushServletMapping
(VaadinSession vaadinSession) static String
BootstrapHandlerHelper.getPushURL
(VaadinSession vaadinSession, VaadinRequest vaadinRequest) Gets the push URL as a URL relative to the request URI.static Map<Class<?>,
CurrentInstance> CurrentInstance.setCurrent
(VaadinSession session) Sets current instances for theVaadinSession
and all related classes. -
Uses of VaadinSession in com.vaadin.flow.router.internal
Methods in com.vaadin.flow.router.internal with parameters of type VaadinSessionModifier and TypeMethodDescriptionboolean
RouteRegistryHotswapper.onClassLoadEvent
(VaadinSession session, Set<Class<?>> classes, boolean redefined) -
Uses of VaadinSession in com.vaadin.flow.server
Methods in com.vaadin.flow.server that return VaadinSessionModifier and TypeMethodDescriptionprotected VaadinSession
VaadinService.createVaadinSession
(VaadinRequest request) Creates a new Vaadin session for this service and request.VaadinService.findVaadinSession
(VaadinRequest request) Attempts to find a Vaadin service session associated with this request.static VaadinSession
VaadinSession.getCurrent()
Gets the currently used session.protected VaadinSession
VaadinService.getExistingSession
(VaadinRequest request, boolean allowSessionCreation) BootstrapHandler.BootstrapContext.getSession()
Gets the Vaadin session.SessionDestroyEvent.getSession()
Gets the Vaadin service session that is no longer used.SessionInitEvent.getSession()
Gets the Vaadin service session that has been initialized.protected VaadinSession
VaadinService.loadSession
(WrappedSession wrappedSession) Called when the VaadinSession should be loaded from the underlying HTTP session.protected VaadinSession
VaadinService.readFromHttpSession
(WrappedSession wrappedSession) Performs the actual read of the VaadinSession from the underlying HTTP session after sanity checks have been performed.Methods in com.vaadin.flow.server that return types with arguments of type VaadinSessionModifier and TypeMethodDescriptionstatic Collection<VaadinSession>
VaadinSession.getAllSessions
(jakarta.servlet.http.HttpSession httpSession) Retrieves allVaadinSession
s which are stored in the given HTTP session.Methods in com.vaadin.flow.server with parameters of type VaadinSessionModifier and TypeMethodDescriptionvoid
StreamResourceWriter.accept
(OutputStream stream, VaadinSession session) Handlesstream
(writes data to it) usingsession
as a context.VaadinService.accessSession
(VaadinSession session, Command command) Implementation foraccess(Command)
.abstract void
SessionLockCheckStrategy.checkHasLock
(VaadinSession session, String message) Potentially checks whether this session is currently locked by the current threadvoid
VaadinService.closeSession
(VaadinSession session) Sets the given session to be closed and all its UI state to be discarded at the end of the current request, or at the end of the next request if there is no ongoing one.protected BootstrapHandler.BootstrapContext
BootstrapHandler.createAndInitUI
(Class<? extends UI> uiClass, VaadinRequest request, VaadinResponse response, VaadinSession session) void
VaadinService.ensureAccessQueuePurged
(VaadinSession session) Makes sure the pending access queue is purged for the provided session.static ErrorHandler
ErrorEvent.findErrorHandler
(VaadinSession session) Finds the error handler for the given session.static Locale
HandlerHelper.findLocale
(VaadinSession session, VaadinRequest request) Helper to find the most most suitable Locale.void
VaadinService.fireSessionDestroy
(VaadinSession vaadinSession) Handles destruction of the given session.abstract String
VaadinService.getMainDivId
(VaadinSession session, VaadinRequest request) Creates and returns a unique ID for the DIV where the UI is to be rendered.VaadinServletService.getMainDivId
(VaadinSession session, VaadinRequest request) static RouteRegistry
SessionRouteRegistry.getSessionRegistry
(VaadinSession session) Get the session registry for VaadinSession.void
VaadinRequestInterceptor.handleException
(VaadinRequest request, VaadinResponse response, VaadinSession vaadinSession, Exception t) Called when an exception occurredboolean
RequestHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) Called when a request needs to be handled.boolean
SynchronizedRequestHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) boolean
UnsupportedBrowserHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) static boolean
VaadinService.isOtherSessionLocked
(VaadinSession session) Checks whether there might be someVaadinSession
other than the provided one for which the current thread holds a lock.void
VaadinRequestInterceptor.requestEnd
(VaadinRequest request, VaadinResponse response, VaadinSession session) Called in the finally block of processing a request.void
VaadinService.requestEnd
(VaadinRequest request, VaadinResponse response, VaadinSession session) Called after the framework has handled a request and the response has been written.void
VaadinService.runPendingAccessTasks
(VaadinSession session) Purges the queue of pending access invocations enqueued withaccess(Command)
.static void
VaadinSession.setCurrent
(VaadinSession session) Sets the thread local for the current session.protected void
VaadinService.storeSession
(VaadinSession session, WrappedSession wrappedSession) Called when the VaadinSession should be stored.boolean
BootstrapHandler.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) abstract boolean
SynchronizedRequestHandler.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) Identical toSynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except theVaadinSession
is locked before this is called and unlocked after this has completed.SynchronizedRequestHandler.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response, String requestBody) Identical toSynchronizedRequestHandler.synchronizedHandleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except theVaadinSession
is locked before this is called and the response requestBody has been read before locking the session and is provided as a separate parameter.static void
VaadinService.verifyNoOtherSessionLocked
(VaadinSession session) Checks that anotherVaadinSession
instance is not locked.protected void
VaadinService.writeToHttpSession
(WrappedSession wrappedSession, VaadinSession session) Performs the actual write of the VaadinSession to the underlying HTTP session after sanity checks have been performed.Constructors in com.vaadin.flow.server with parameters of type VaadinSessionModifierConstructorDescriptionprotected
BootstrapContext
(VaadinRequest request, VaadinResponse response, VaadinSession session, UI ui, Function<VaadinRequest, String> contextCallback) Creates a new context instance using the given parameters.protected
BootstrapContext
(VaadinRequest request, VaadinResponse response, VaadinSession session, UI ui, Function<VaadinRequest, String> contextCallback, Function<VaadinRequest, Location> routeCallback) Creates a new context instance using the given parameters.BootstrapUriResolver
(String contextRootRelatiePath, VaadinSession session) Creates a new bootstrap resolver based on the given session.FutureAccess
(VaadinSession session, Command command) Creates an instance for the given command.SessionDestroyEvent
(VaadinService service, VaadinSession session) Creates a new event.SessionInitEvent
(VaadinService service, VaadinSession session, VaadinRequest request) Creates a new event.StreamResourceRegistry
(VaadinSession session) Creates stream resource registry for providedsession
. -
Uses of VaadinSession in com.vaadin.flow.server.communication
Methods in com.vaadin.flow.server.communication with parameters of type VaadinSessionModifier and TypeMethodDescriptionprotected BootstrapHandler.BootstrapContext
JavaScriptBootstrapHandler.createAndInitUI
(Class<? extends UI> uiClass, VaadinRequest request, VaadinResponse response, VaadinSession session) protected BootstrapHandler.BootstrapContext
WebComponentBootstrapHandler.createAndInitUI
(Class<? extends UI> uiClass, VaadinRequest request, VaadinResponse response, VaadinSession session) protected void
StreamReceiverHandler.doHandleMultipartFileUpload
(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamReceiver streamReceiver, StateNode owner) Streams content from a multipart request to given StreamVariable.protected void
StreamReceiverHandler.doHandleXhrFilePost
(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamReceiver streamReceiver, StateNode owner, long contentLength) Used to stream plain file post (aka XHR2.post(File))protected elemental.json.JsonObject
JavaScriptBootstrapHandler.getInitialJson
(VaadinRequest request, VaadinResponse response, VaadinSession session) Returns the JSON object with the application config and UIDL info that can be used in the bootstrapper to embed that info in the initial page.protected boolean
StreamReceiverHandler.handleFileUploadValidationAndData
(VaadinSession session, InputStream inputStream, StreamReceiver streamReceiver, String filename, String mimeType, long contentLength, StateNode node) Validate that stream target is in a valid state for receiving data and send stream to receiver.boolean
FaviconHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) boolean
PushRequestHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) boolean
PwaHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) boolean
SessionRequestHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) void
StreamReceiverHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamReceiver streamReceiver, String uiId, String securityKey) Handle reception of incoming stream from the client.boolean
StreamRequestHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) void
StreamResourceHandler.handleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamResource streamResource) Handle sending for a stream resource request.boolean
HeartbeatHandler.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) Handles a heartbeat request for the given session.boolean
IndexHtmlRequestHandler.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) boolean
JavaScriptBootstrapHandler.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) boolean
UidlRequestHandler.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) UidlRequestHandler.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response, String requestBody) boolean
WebComponentBootstrapHandler.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) boolean
WebComponentProvider.synchronizedHandleRequest
(VaadinSession session, VaadinRequest request, VaadinResponse response) -
Uses of VaadinSession in com.vaadin.flow.server.dau
Methods in com.vaadin.flow.server.dau that return VaadinSessionModifier and TypeMethodDescriptionUserIdentityContext.session()
Returns the value of thesession
record component.Methods in com.vaadin.flow.server.dau with parameters of type VaadinSessionModifier and TypeMethodDescriptionvoid
DAUVaadinRequestInterceptor.handleException
(VaadinRequest request, VaadinResponse response, VaadinSession vaadinSession, Exception t) void
DAUVaadinRequestInterceptor.requestEnd
(VaadinRequest request, VaadinResponse response, VaadinSession session) Constructors in com.vaadin.flow.server.dau with parameters of type VaadinSessionModifierConstructorDescriptionUserIdentityContext
(VaadinRequest request, VaadinSession session) Creates an instance of aUserIdentityContext
record class. -
Uses of VaadinSession in com.vaadin.flow.spring
Subclasses of VaadinSession in com.vaadin.flow.springModifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.No replacement plannedMethods in com.vaadin.flow.spring that return VaadinSessionModifier and TypeMethodDescriptionprotected VaadinSession
SpringVaadinServletService.createVaadinSession
(VaadinRequest request) -
Uses of VaadinSession in com.vaadin.testbench.unit.mocks
Subclasses of VaadinSession in com.vaadin.testbench.unit.mocksModifier and TypeClassDescriptionclass
A Vaadin Session with one important difference: Creates a new session when this one is closed.Methods in com.vaadin.testbench.unit.mocks that return VaadinSessionModifier and TypeMethodDescriptionprotected VaadinSession
MockSpringServletService.createVaadinSession
(VaadinRequest request) Methods in com.vaadin.testbench.unit.mocks with parameters of type VaadinSessionModifier and TypeMethodDescriptionMockSpringServletService.getMainDivId
(VaadinSession session, VaadinRequest request)