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 TypeMethodDescriptionbooleanAbstractDevServerRunner.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) booleanDevBundleBuildingHandler.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 TypeMethodDescriptionvoidUIInternals.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 booleanVaadinHotswapper.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 TypeMethodDescriptionbooleanTranslationFileRequestHandler.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 StringBootstrapHandlerHelper.determinePushServletMapping(VaadinSession vaadinSession) static StringBootstrapHandlerHelper.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 theVaadinSessionand 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 TypeMethodDescriptionbooleanRouteRegistryHotswapper.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 VaadinSessionVaadinService.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 VaadinSessionVaadinSession.getCurrent()Gets the currently used session.protected VaadinSessionVaadinService.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 VaadinSessionVaadinService.loadSession(WrappedSession wrappedSession) Called when the VaadinSession should be loaded from the underlying HTTP session.protected VaadinSessionVaadinService.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 allVaadinSessions which are stored in the given HTTP session.Methods in com.vaadin.flow.server with parameters of type VaadinSessionModifier and TypeMethodDescriptionvoidStreamResourceWriter.accept(OutputStream stream, VaadinSession session) Handlesstream(writes data to it) usingsessionas a context.VaadinService.accessSession(VaadinSession session, Command command) Implementation foraccess(Command).abstract voidSessionLockCheckStrategy.checkHasLock(VaadinSession session, String message) Potentially checks whether this session is currently locked by the current threadvoidVaadinService.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.BootstrapContextBootstrapHandler.createAndInitUI(Class<? extends UI> uiClass, VaadinRequest request, VaadinResponse response, VaadinSession session) voidVaadinService.ensureAccessQueuePurged(VaadinSession session) Makes sure the pending access queue is purged for the provided session.static ErrorHandlerErrorEvent.findErrorHandler(VaadinSession session) Finds the error handler for the given session.static LocaleHandlerHelper.findLocale(VaadinSession session, VaadinRequest request) Helper to find the most most suitable Locale.voidVaadinService.fireSessionDestroy(VaadinSession vaadinSession) Handles destruction of the given session.abstract StringVaadinService.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 RouteRegistrySessionRouteRegistry.getSessionRegistry(VaadinSession session) Get the session registry for VaadinSession.voidVaadinRequestInterceptor.handleException(VaadinRequest request, VaadinResponse response, VaadinSession vaadinSession, Exception t) Called when an exception occurredbooleanRequestHandler.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) Called when a request needs to be handled.booleanSynchronizedRequestHandler.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) booleanUnsupportedBrowserHandler.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) static booleanVaadinService.isOtherSessionLocked(VaadinSession session) Checks whether there might be someVaadinSessionother than the provided one for which the current thread holds a lock.voidVaadinRequestInterceptor.requestEnd(VaadinRequest request, VaadinResponse response, VaadinSession session) Called in the finally block of processing a request.voidVaadinService.requestEnd(VaadinRequest request, VaadinResponse response, VaadinSession session) Called after the framework has handled a request and the response has been written.voidVaadinService.runPendingAccessTasks(VaadinSession session) Purges the queue of pending access invocations enqueued withaccess(Command).static voidVaadinSession.setCurrent(VaadinSession session) Sets the thread local for the current session.protected voidVaadinService.storeSession(VaadinSession session, WrappedSession wrappedSession) Called when the VaadinSession should be stored.booleanBootstrapHandler.synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) abstract booleanSynchronizedRequestHandler.synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) Identical toSynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)except theVaadinSessionis 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 theVaadinSessionis locked before this is called and the response requestBody has been read before locking the session and is provided as a separate parameter.static voidVaadinService.verifyNoOtherSessionLocked(VaadinSession session) Checks that anotherVaadinSessioninstance is not locked.protected voidVaadinService.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 VaadinSessionModifierConstructorDescriptionprotectedBootstrapContext(VaadinRequest request, VaadinResponse response, VaadinSession session, UI ui, Function<VaadinRequest, String> contextCallback) Creates a new context instance using the given parameters.protectedBootstrapContext(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.BootstrapContextJavaScriptBootstrapHandler.createAndInitUI(Class<? extends UI> uiClass, VaadinRequest request, VaadinResponse response, VaadinSession session) protected BootstrapHandler.BootstrapContextWebComponentBootstrapHandler.createAndInitUI(Class<? extends UI> uiClass, VaadinRequest request, VaadinResponse response, VaadinSession session) protected voidStreamReceiverHandler.doHandleMultipartFileUpload(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamReceiver streamReceiver, StateNode owner) Streams content from a multipart request to given StreamVariable.protected voidStreamReceiverHandler.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.JsonObjectJavaScriptBootstrapHandler.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 booleanStreamReceiverHandler.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.booleanFaviconHandler.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) booleanPushRequestHandler.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) booleanPwaHandler.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) booleanSessionRequestHandler.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) voidStreamReceiverHandler.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamReceiver streamReceiver, String uiId, String securityKey) Handle reception of incoming stream from the client.booleanStreamRequestHandler.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) voidStreamResourceHandler.handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamResource streamResource) Handle sending for a stream resource request.booleanHeartbeatHandler.synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) Handles a heartbeat request for the given session.booleanIndexHtmlRequestHandler.synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) booleanJavaScriptBootstrapHandler.synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) booleanUidlRequestHandler.synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) UidlRequestHandler.synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response, String requestBody) booleanWebComponentBootstrapHandler.synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) booleanWebComponentProvider.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 thesessionrecord component.Methods in com.vaadin.flow.server.dau with parameters of type VaadinSessionModifier and TypeMethodDescriptionvoidDAUVaadinRequestInterceptor.handleException(VaadinRequest request, VaadinResponse response, VaadinSession vaadinSession, Exception t) voidDAUVaadinRequestInterceptor.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 aUserIdentityContextrecord class. -
Uses of VaadinSession in com.vaadin.flow.spring
Subclasses of VaadinSession in com.vaadin.flow.springModifier and TypeClassDescriptionclassDeprecated, 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 VaadinSessionSpringVaadinServletService.createVaadinSession(VaadinRequest request) -
Uses of VaadinSession in com.vaadin.testbench.unit.mocks
Subclasses of VaadinSession in com.vaadin.testbench.unit.mocksModifier and TypeClassDescriptionclassA 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 VaadinSessionMockSpringServletService.createVaadinSession(VaadinRequest request) Methods in com.vaadin.testbench.unit.mocks with parameters of type VaadinSessionModifier and TypeMethodDescriptionMockSpringServletService.getMainDivId(VaadinSession session, VaadinRequest request)