javax.rad.server.event
Class SessionEvent

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

public class SessionEvent
extends Object

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


Constructor Summary
SessionEvent(ISession pSession)
          Creates a new instance of SessionEvent.
SessionEvent(ISession pSession, 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.
 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)
Creates a new instance of SessionEvent.

Parameters:
pSession - the assigned session

SessionEvent

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

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

getSession

public ISession getSession()
Gets the event session.

Returns:
the 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.