com.iplanet.portalserver.session
Class SessionEvent

java.lang.Object
  |
  +--com.iplanet.portalserver.session.SessionEvent

public class SessionEvent
extends java.lang.Object

The SessionEvent class represents a session event. If this is a new session, the session event contains all session information of this new session, otherwise, only the changed information of the session is contained in the session event.

The following are possible session event types: SESSION_CREATION, IDLE_TIMEOUT, MAX_TIMEOUT, LOGOUT, REACTIVATION, and DESTROY.

See Also:
Session

Field Summary
static int DESTROY
          Session destroy event
static int IDLE_TIMEOUT
          Session idle time out event
static int LOGOUT
          Session logout event
static int MAX_TIMEOUT
          Session maximum time out event
static int REACTIVATION
          Session reactivation event
static int SESSION_CREATION
          Session creation event
 
Method Summary
 Session getSession()
          Gets the session object which emitted this event.
 long getTime()
          Gets the time of this event.
 int getType()
          Gets the type of this event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_CREATION

public static final int SESSION_CREATION
Session creation event

IDLE_TIMEOUT

public static final int IDLE_TIMEOUT
Session idle time out event

MAX_TIMEOUT

public static final int MAX_TIMEOUT
Session maximum time out event

LOGOUT

public static final int LOGOUT
Session logout event

REACTIVATION

public static final int REACTIVATION
Session reactivation event

DESTROY

public static final int DESTROY
Session destroy event
Method Detail

getSession

public Session getSession()
Gets the session object which emitted this event.
Parameters:
None. -  
Returns:
The session object which emitted this event.

getType

public int getType()
Gets the type of this event.
Parameters:
None. -  
Returns:
The type of this event. Possible types are : SESSION_CREATION, IDLE_TIMEOUT, MAX_TIMEOUT, LOGOUT, REACTIVATION, and DESTROY.

getTime

public long getTime()
Gets the time of this event.
Parameters:
None. -  
Returns:
The event time as UTC milliseconds from the epoch