Uses of Class
com.vaadin.server.VaadinSession
-
Packages that use VaadinSession Package Description com.vaadin.data.util.converter com.vaadin.server com.vaadin.server.communication com.vaadin.ui com.vaadin.util -
-
Uses of VaadinSession in com.vaadin.data.util.converter
Methods in com.vaadin.data.util.converter with parameters of type VaadinSession Modifier and Type Method Description static <PRESENTATIONTYPE,MODELTYPE>
Converter<PRESENTATIONTYPE,MODELTYPE>ConverterUtil. getConverter(Class<PRESENTATIONTYPE> presentationType, Class<MODELTYPE> modelType, VaadinSession session)
Finds a converter that can convert from the given presentation type to the given model type and back. -
Uses of VaadinSession in com.vaadin.server
Methods in com.vaadin.server that return VaadinSession Modifier and Type Method Description protected VaadinSession
VaadinService. createVaadinSession(VaadinRequest request)
Creates a new Vaadin session for this service and requestVaadinSession
VaadinService. findVaadinSession(VaadinRequest request)
Attempts to find a Vaadin service session associated with this request.protected VaadinSession
GAEVaadinServlet. getApplicationContext(javax.servlet.http.HttpServletRequest request, com.google.appengine.api.memcache.MemcacheService memcache)
VaadinSession
LegacyApplication. getContext()
Deprecated.static VaadinSession
VaadinSession. getCurrent()
Gets the currently used session.protected VaadinSession
VaadinService. getExistingSession(VaadinRequest request, boolean allowSessionCreation)
static VaadinSession
VaadinSession. getForSession(VaadinService service, WrappedSession underlyingSession)
Deprecated.as of 7.6, callVaadinService.loadSession(WrappedSession)
insteadprotected VaadinSession
AbstractClientConnector. getSession()
Finds theVaadinSession
to which this connector belongs.VaadinSession
BootstrapHandler.BootstrapContext. getSession()
VaadinSession
BootstrapResponse. getSession()
Gets the service session to which the rendered view belongs.protected VaadinSession
LegacyCommunicationManager. getSession()
Deprecated.VaadinSession
SessionDestroyEvent. getSession()
Gets the Vaadin service session that is no longer used.VaadinSession
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 sessionprotected 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.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 allVaadinSession
s which are stored in the given HTTP sessionMethods 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 void
ServletPortletHelper. checkUiProviders(VaadinSession session, VaadinService vaadinService)
Deprecated.void
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.void
VaadinService. ensureAccessQueuePurged(VaadinSession session)
Makes sure the pending access queue is purged for the provided session.static ErrorHandler
ErrorEvent. findErrorHandler(VaadinSession session)
Method for finding the error handler for the given session.static Locale
ServletPortletHelper. findLocale(Component component, VaadinSession session, VaadinRequest request)
Deprecated.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, Class<? extends UI> uiClass)
Creates and returns a unique ID for the DIV where the UI is to be rendered.String
VaadinServletService. getMainDivId(VaadinSession session, VaadinRequest request, Class<? extends UI> uiClass)
boolean
ConnectorResourceHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
boolean
GlobalResourceHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
boolean
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)
static void
ServletPortletHelper. initDefaultUIProvider(VaadinSession session, VaadinService vaadinService)
Deprecated.static boolean
VaadinService. isCsrfTokenValid(VaadinSession session, String requestToken)
Verifies that the given CSRF token (aka double submit cookie) is valid for the given session.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
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(Runnable)
.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)
Deprecated.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.boolean
UnsupportedBrowserHandler. synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
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.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.DragAndDropService(VaadinSession session)
FutureAccess(VaadinSession session, Runnable runnable)
Creates an instance for the given runnableLegacyCommunicationManager(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 void
FileUploadHandler. 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 void
FileUploadHandler. 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))boolean
FileUploadHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
boolean
PublishedFileHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
Writes the connector resource identified by the request URI to the response.boolean
PushRequestHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
boolean
SessionRequestHandler. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
protected boolean
FileUploadHandler. streamToReceiver(VaadinSession session, InputStream in, StreamVariable streamVariable, String filename, String type, long contentLength)
boolean
HeartbeatHandler. synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
Handles a heartbeat request for the given session.boolean
UidlRequestHandler. synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
boolean
UIInitHandler. 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 VaadinSession
UI. 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 void
UI. 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 theVaadinSession
and all related classes.
-