javax.rad.server.event
Class SessionEvent

java.lang.Object
  extended by javax.rad.server.event.SessionEvent
Direct Known Subclasses:
CallEvent

public class SessionEvent
extends java.lang.Object

The SessionEvent is an event which contains an ISession as source.


Constructor Summary
SessionEvent(ISession pSession, ISession pSource)
          Creates a new instance of SessionEvent.
SessionEvent(ISession pSession, ISession pSource, boolean pHasError)
          Creates a new instance of SessionEvent.
 
Method Summary
 long getCreationTime()
          Gets the creation time of this event.
 ISession getSession()
          Gets the event session.
 ISession getSourceSession()
          Gets the event source session.
 boolean hasError()
          Gets whether this event was marked as error event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionEvent

public SessionEvent(ISession pSession,
                    ISession pSource)
Creates a new instance of SessionEvent.

Parameters:
pSession - the assigned session
pSource - the source session

SessionEvent

public SessionEvent(ISession pSession,
                    ISession pSource,
                    boolean pHasError)
Creates a new instance of SessionEvent.

Parameters:
pSession - the assigned session
pSource - the source session
pHasError - whether the event should marked faulty
Method Detail

getSession

public ISession getSession()
Gets the event session.

Returns:
the session

getSourceSession

public ISession getSourceSession()
Gets the event source session. This session might not always the same as getSession().

Returns:
the source/triggering session

getCreationTime

public long getCreationTime()
Gets the creation time of this event.

Returns:
the time in millis

hasError

public boolean hasError()
Gets whether this event was marked as error event.

Returns:
true if marked faulty.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.