Package | Description |
---|---|
com.vaadin.flow.component | |
com.vaadin.flow.component.internal | |
com.vaadin.flow.internal | |
com.vaadin.flow.server | |
com.vaadin.flow.server.communication |
Modifier and Type | Method and Description |
---|---|
VaadinSession |
UI.getSession()
Gets the VaadinSession to which this UI is attached.
|
Modifier and Type | Method and Description |
---|---|
VaadinSession |
UIInternals.getSession()
Gets the VaadinSession to which the related UI is attached.
|
VaadinSession |
AbstractAttachDetachEvent.getSession()
Gets the session the component is attached to.
|
Modifier and Type | Method and Description |
---|---|
void |
UIInternals.setSession(VaadinSession session)
Sets the session to which the related UI is assigned.
|
Constructor and Description |
---|
DeadlockDetectingCompletableFuture(VaadinSession session)
Creates a new deadlock detecting completable future tied to the given
session.
|
Modifier and Type | Method and Description |
---|---|
static Map<Class<?>,CurrentInstance> |
CurrentInstance.setCurrent(VaadinSession session)
Sets current instances for the
VaadinSession and all related
classes. |
Modifier and Type | Method and 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 |
SessionInitEvent.getSession()
Gets the Vaadin service session that has been initialized.
|
VaadinSession |
SessionDestroyEvent.getSession()
Gets the Vaadin service session that is no longer used.
|
VaadinSession |
BootstrapPageResponse.getSession()
Gets the service session to which the rendered view belongs.
|
VaadinSession |
BootstrapHandler.BootstrapContext.getSession()
Gets the Vaadin session.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static Collection<VaadinSession> |
VaadinSession.getAllSessions(HttpSession httpSession)
Retrieves all
VaadinSession s which are stored in the given HTTP
session. |
Modifier and Type | Method and Description |
---|---|
void |
StreamResourceWriter.accept(OutputStream stream,
VaadinSession session)
Handles
stream (writes data to it) using session as a
context. |
Future<Void> |
VaadinService.accessSession(VaadinSession session,
Command command)
Implementation for
access(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 |
ServletHelper.findLocale(VaadinSession session,
VaadinRequest request)
Deprecated.
|
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.
|
String |
VaadinServletService.getMainDivId(VaadinSession session,
VaadinRequest request) |
abstract String |
VaadinService.getMainDivId(VaadinSession session,
VaadinRequest request)
Creates and returns a unique ID for the DIV where the UI is to be
rendered.
|
static RouteRegistry |
SessionRouteRegistry.getSessionRegistry(VaadinSession session)
Get the session registry for VaadinSession.
|
boolean |
SynchronizedRequestHandler.handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response) |
boolean |
RequestHandler.handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
Called when a request needs to be handled.
|
static boolean |
VaadinService.isOtherSessionLocked(VaadinSession session)
Checks whether there might be some
VaadinSession 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 with
access(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 |
UnsupportedBrowserHandler.synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response) |
abstract boolean |
SynchronizedRequestHandler.synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
Identical to
SynchronizedRequestHandler.handleRequest(VaadinSession, VaadinRequest, VaadinResponse)
except the VaadinSession is locked before this is called and
unlocked after this has completed. |
boolean |
BootstrapHandler.synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response) |
static void |
VaadinService.verifyNoOtherSessionLocked(VaadinSession session)
Checks that another
VaadinSession 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.
|
Constructor and Description |
---|
BootstrapContext(VaadinRequest request,
VaadinResponse response,
VaadinSession session,
UI ui,
Function<VaadinRequest,String> contextCallback)
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)
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 provided
session . |
Modifier and Type | Method and Description |
---|---|
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))
|
boolean |
StreamRequestHandler.handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response) |
boolean |
SessionRequestHandler.handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response) |
boolean |
PwaHandler.handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response) |
boolean |
PushRequestHandler.handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response) |
boolean |
FaviconHandler.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.
|
void |
StreamResourceHandler.handleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response,
StreamResource streamResource)
Handle sending for a stream resource request.
|
boolean |
WebComponentProvider.synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response) |
boolean |
WebComponentBootstrapHandler.synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response) |
boolean |
UidlRequestHandler.synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response) |
boolean |
HeartbeatHandler.synchronizedHandleRequest(VaadinSession session,
VaadinRequest request,
VaadinResponse response)
Handles a heartbeat request for the given session.
|
Copyright © 2020. All rights reserved.