Uses of Class
com.vaadin.flow.server.VaadinSession
-
-
Uses of VaadinSession in com.vaadin.base.devserver
Methods in com.vaadin.base.devserver with parameters of type VaadinSession Modifier and Type Method Description boolean
AbstractDevServerRunner. handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
-
Uses of VaadinSession in com.vaadin.flow.component
Methods in com.vaadin.flow.component that return VaadinSession Modifier and Type Method Description VaadinSession
UI. 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 VaadinSession Modifier and Type Method Description VaadinSession
AbstractAttachDetachEvent. getSession()
Gets the session the component is attached to.VaadinSession
UIInternals. getSession()
Gets the VaadinSession to which the related UI is attached.Methods in com.vaadin.flow.component.internal with parameters of type VaadinSession Modifier and Type Method Description void
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 VaadinSession Constructor Description DeadlockDetectingCompletableFuture(VaadinSession session)
Creates a new deadlock detecting completable future tied to the given session. -
Uses of VaadinSession in com.vaadin.flow.internal
Methods in com.vaadin.flow.internal with parameters of type VaadinSession Modifier and Type Method Description 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.server
Methods in com.vaadin.flow.server that return VaadinSession Modifier and Type Method Description protected VaadinSession
VaadinService. createVaadinSession(VaadinRequest request)
Creates a new Vaadin session for this service and request.VaadinSession
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)
VaadinSession
BootstrapHandler.BootstrapContext. getSession()
Gets the Vaadin session.VaadinSession
BootstrapPageResponse. getSession()
Deprecated.Gets the service session to which the rendered view belongs.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 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 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 session.Methods in com.vaadin.flow.server with parameters of type VaadinSession Modifier and Type Method Description void
StreamResourceWriter. accept(OutputStream stream, VaadinSession session)
Handlesstream
(writes data to it) usingsession
as a context.Future<Void>
VaadinService. accessSession(VaadinSession session, Command command)
Implementation foraccess(Command)
.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.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.String
VaadinServletService. getMainDivId(VaadinSession session, VaadinRequest request)
static RouteRegistry
SessionRouteRegistry. getSessionRegistry(VaadinSession session)
Get the session registry for VaadinSession.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 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(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.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.flow.server with parameters of type VaadinSession Constructor Description BootstrapContext(VaadinRequest request, VaadinResponse response, VaadinSession session, UI ui, Function<VaadinRequest,String> contextCallback)
Creates a new context instance using the given parameters.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.BootstrapPageResponse(VaadinRequest request, VaadinSession session, VaadinResponse response, org.jsoup.nodes.Document document, UI ui, VaadinUriResolver uriResolver)
Deprecated.Create a new bootstrap page response.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 VaadinSession Modifier and Type Method Description protected 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)
boolean
WebComponentBootstrapHandler. synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
boolean
WebComponentProvider. synchronizedHandleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response)
-