public class SessionInitEvent extends EventObject
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.
SessionInitListener.sessionInit(SessionInitEvent)
,
Serialized Formsource
Constructor and Description |
---|
SessionInitEvent(VaadinService service,
VaadinSession session,
VaadinRequest request)
Creates a new event.
|
Modifier and Type | Method and Description |
---|---|
VaadinRequest |
getRequest()
Gets the request that triggered the initialization.
|
VaadinService |
getService()
Gets the Vaadin service from which this event originates.
|
VaadinSession |
getSession()
Gets the Vaadin service session that has been initialized.
|
VaadinService |
getSource() |
toString
public SessionInitEvent(VaadinService service, VaadinSession session, VaadinRequest request)
service
- the Vaadin service from which the event originatessession
- the Vaadin service session that has been initializedrequest
- the request that triggered the initializationpublic VaadinService getSource()
getSource
in class EventObject
public VaadinService getService()
public VaadinSession getSession()
public VaadinRequest getRequest()
Copyright © 2020. All rights reserved.