com.vaadin.server
Class SessionInitEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.server.SessionInitEvent
All Implemented Interfaces:
java.io.Serializable

public class SessionInitEvent
extends java.util.EventObject

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:
7.0.0
Author:
Vaadin Ltd
See Also:
SessionInitListener.sessionInit(SessionInitEvent), Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SessionInitEvent(VaadinService service, VaadinSession session, VaadinRequest request)
          Creates a new event.
 
Method Summary
 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()
           
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionInitEvent

public SessionInitEvent(VaadinService service,
                        VaadinSession session,
                        VaadinRequest request)
Creates a new event.

Parameters:
service - the Vaadin service from which the event originates
session - the Vaadin service session that has been initialized
request - the request that triggered the initialization
Method Detail

getSource

public VaadinService getSource()
Overrides:
getSource in class java.util.EventObject

getService

public VaadinService getService()
Gets the Vaadin service from which this event originates

Returns:
the Vaadin service instance

getSession

public VaadinSession getSession()
Gets the Vaadin service session that has been initialized.

Returns:
the Vaadin service session

getRequest

public VaadinRequest getRequest()
Gets the request that triggered the initialization.

Returns:
the request


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.