Package com.iplanet.dpro.session
Class SessionEvent
- java.lang.Object
-
- com.iplanet.dpro.session.SessionEvent
-
public class SessionEvent extends Object
This class represents a session event.If this is a new session, the event object contains all session information of this new session; otherwise, only the changed information of the session is contained in the event.
- See Also:
Session,SessionEventType
-
-
Constructor Summary
Constructors Constructor Description SessionEvent(Session session, SessionEventType eventType, long eventTime)Creates a new session event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessiongetSession()Gets the session object which emitted this event.longgetTime()Gets the time of this event.SessionEventTypegetType()Gets the type of event that has occurred.
-
-
-
Constructor Detail
-
SessionEvent
public SessionEvent(Session session, SessionEventType eventType, long eventTime)
Creates a new session event.- Parameters:
session- The session object which emitted this event.eventType- The event which has occurred.eventTime- The event time as UTC milliseconds from the epoch.
-
-
Method Detail
-
getSession
public Session getSession()
Gets the session object which emitted this event.- Returns:
- The session object which emitted this event.
-
getType
public SessionEventType getType()
Gets the type of event that has occurred.- Returns:
- The type of this event.
-
getTime
public long getTime()
Gets the time of this event.- Returns:
- The event time as UTC milliseconds from the epoch
-
-