Uses of Class
com.vaadin.server.VaadinSession
-
Packages that use VaadinSession Package Description com.vaadin.server com.vaadin.server.communication com.vaadin.ui com.vaadin.util -
-
Uses of VaadinSession in com.vaadin.server
Methods in com.vaadin.server that return VaadinSession Modifier and Type Method Description protected VaadinSessionVaadinService. createVaadinSession(VaadinRequest request)Creates a new Vaadin session for this service and request.VaadinSessionVaadinService. findVaadinSession(VaadinRequest request)Attempts to find a Vaadin service session associated with this request.VaadinSessionLegacyApplication. getContext()Deprecated.static VaadinSessionVaadinSession. getCurrent()Gets the currently used session.protected VaadinSessionVaadinService. getExistingSession(VaadinRequest request, boolean allowSessionCreation)static VaadinSessionVaadinSession. getForSession(VaadinService service, WrappedSession underlyingSession)Deprecated.as of 7.6, callVaadinService.loadSession(WrappedSession)insteadprotected VaadinSessionAbstractClientConnector. getSession()Finds theVaadinSessionto which this connector belongs.VaadinSessionBootstrapHandler.BootstrapContext. getSession()Gets the Vaadin session.VaadinSessionBootstrapResponse. getSession()Gets the service session to which the rendered view belongs.VaadinSessionConnectorIdGenerationEvent. getSession()Gets the session for which connector id is needed.VaadinSessionDependencyFilter.FilterContext. getSession()Gets the related Vaadin session.protected VaadinSessionLegacyCommunicationManager. getSession()Deprecated.VaadinSessionSessionDestroyEvent. getSession()Gets the Vaadin service session that is no longer used.VaadinSessionSessionInitEvent. 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.server that return types with arguments of type VaadinSession Modifier and Type Method Description static Collection<VaadinSession>VaadinSession. getAllSessions(javax.servlet.http.HttpSession httpSession)Retrieves allVaadinSessions which are stored in the given HTTP session.Methods in com.vaadin.server with parameters of type VaadinSession Modifier and Type Method Description Future<Void>VaadinService. accessSession(VaadinSession session, Runnable runnable)Implementation foraccess(Runnable).static voidServletPortletHelper. checkUiProviders(VaadinSession session, VaadinService vaadinService)Deprecated.voidVaadinService. cleanupSession(VaadinSession session)Closes inactive UIs in the given session, removes closed UIs from the session, and closes the session if it is itself inactive.voidVaadinService. 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.voidVaadinService. ensureAccessQueuePurged(VaadinSession session)Makes sure the pending access queue is purged for the provided session.static ErrorHandlerErrorEvent. findErrorHandler(VaadinSession session)Method for finding the error handler for the given session.static LocaleServletPortletHelper. findLocale(Component component, VaadinSession session, VaadinRequest request)Deprecated.Helper to find the most most suitable Locale.voidVaadinService. fireSessionDestroy(VaadinSession vaadinSession)Handles destruction of the given session.StringVaadinService. generateConnectorId(VaadinSession session, ClientConnector connector)Generates a unique id to use for a newly attached connector.abstract StringVaadinService. getMainDivId(VaadinSession session, VaadinRequest request, Class<? extends UI> uiClass)Creates and returns a unique ID for the DIV where the UI is to be rendered.StringVaadinServletService. getMainDivId(VaadinSession session, VaadinRequest request, Class<? extends UI> uiClass)booleanConnectorResourceHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)booleanGlobalResourceHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)booleanRequestHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)Called when a request needs to be handled.booleanSynchronizedRequestHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)static voidServletPortletHelper. initDefaultUIProvider(VaadinSession session, VaadinService vaadinService)Deprecated.static booleanVaadinService. isCsrfTokenValid(VaadinSession session, String requestToken)Verifies that the given CSRF token (aka double submit cookie) is valid for the given session.static booleanVaadinService. isOtherSessionLocked(VaadinSession session)Checks whether there might be someVaadinSessionother than the provided one for which the current thread holds a lock.voidVaadinService. requestEnd(VaadinRequest request, VaadinResponse response, VaadinSession session)Called after the framework has handled a request and the response has been written.static StringBootstrapHandler. resolveFrontendUrl(VaadinSession session)Deprecated.Resolves the URL to use for the frontend:// protocol.voidVaadinService. runPendingAccessTasks(VaadinSession session)Purges the queue of pending access invocations enqueued withaccess(Runnable).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)Deprecated.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.booleanUnsupportedBrowserHandler. synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)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.server with parameters of type VaadinSession Constructor Description BootstrapFragmentResponse(BootstrapHandler handler, VaadinRequest request, VaadinSession session, Class<? extends UI> uiClass, List<org.jsoup.nodes.Node> fragmentNodes, UIProvider uiProvider)Crate a new bootstrap fragment response.BootstrapPageResponse(BootstrapHandler handler, VaadinRequest request, VaadinSession session, Class<? extends UI> uiClass, org.jsoup.nodes.Document document, Map<String,Object> headers, UIProvider uiProvider)Crate a new bootstrap page response.BootstrapResponse(BootstrapHandler handler, VaadinRequest request, VaadinSession session, Class<? extends UI> uiClass, UIProvider uiProvider)Creates a new bootstrap event.ConnectorIdGenerationEvent(VaadinSession session, ClientConnector connector)Creates a new event for the given session and connector.DragAndDropService(VaadinSession session)Deprecated.FilterContext(VaadinSession session)Creates a new context for the given session.FutureAccess(VaadinSession session, Runnable runnable)Creates an instance for the given runnable.LegacyCommunicationManager(VaadinSession session)Deprecated.TODO New constructor - document me!SessionDestroyEvent(VaadinService service, VaadinSession session)Creates a new event.SessionInitEvent(VaadinService service, VaadinSession session, VaadinRequest request)Creates a new event. -
Uses of VaadinSession in com.vaadin.server.communication
Methods in com.vaadin.server.communication with parameters of type VaadinSession Modifier and Type Method Description protected voidFileUploadHandler. doHandleSimpleMultipartFileUpload(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamVariable streamVariable, String variableName, ClientConnector owner, String boundary)Method used to stream content from a multipart request (either from servlet or portlet request) to given StreamVariable.protected voidFileUploadHandler. doHandleXhrFilePost(VaadinSession session, VaadinRequest request, VaadinResponse response, StreamVariable streamVariable, String variableName, ClientConnector owner, long contentLength)Used to stream plain file post (aka XHR2.post(File))booleanFileUploadHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)booleanPublishedFileHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)Writes the connector resource identified by the request URI to the response.booleanPushRequestHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)booleanSessionRequestHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)protected booleanFileUploadHandler. streamToReceiver(VaadinSession session, InputStream in, StreamVariable streamVariable, String filename, String type, long contentLength)booleanHeartbeatHandler. synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)Handles a heartbeat request for the given session.booleanUidlRequestHandler. synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)booleanUIInitHandler. synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) -
Uses of VaadinSession in com.vaadin.ui
Methods in com.vaadin.ui that return VaadinSession Modifier and Type Method Description VaadinSessionUI. getSession()Gets the application object to which the component is attached.Methods in com.vaadin.ui with parameters of type VaadinSession Modifier and Type Method Description voidUI. setSession(VaadinSession session)Sets the session to which this UI is assigned. -
Uses of VaadinSession in com.vaadin.util
Methods in com.vaadin.util with parameters of type VaadinSession Modifier and Type Method Description static Map<Class<?>,CurrentInstance>CurrentInstance. setCurrent(VaadinSession session)Sets current instances for theVaadinSessionand all related classes.
-