com.vaadin.flow.server.
Class SessionInitEvent
All Implemented Interfaces:
Event gets fired when a new Vaadin service session is initialized for a Vaadin service.
Because of the way different service instances share the same session, the event is not necessarily fired immediately when the session is created but only when the first request for that session is handled by a specific service.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionSessionInitEvent
(VaadinService service, VaadinSession session, VaadinRequest request) Creates a new event.
-
Method Summary
Modifier and TypeMethodDescriptionGets the request that triggered the initialization.
Gets the Vaadin service from which this event originates.
Gets the Vaadin service session that has been initialized.
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
SessionInitEvent
Creates a new event.
Parameters:
service
- the Vaadin service from which the event originatessession
- the Vaadin service session that has been initializedrequest
- the request that triggered the initialization
-
-
Method Details
-
getSource
Overrides:
getSource
in classEventObject
-
getService
Gets the Vaadin service from which this event originates.
Returns:
the Vaadin service instance
-
getSession
Gets the Vaadin service session that has been initialized.
Returns:
the Vaadin service session
-
getRequest
Gets the request that triggered the initialization.
Returns:
the request
-