org.mobicents.servlet.sip.notification
Class SipApplicationSessionActivationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.servlet.sip.SipApplicationSessionEvent
          extended by org.mobicents.servlet.sip.notification.SipApplicationSessionActivationEvent
All Implemented Interfaces:
Serializable

public class SipApplicationSessionActivationEvent
extends SipApplicationSessionEvent

Events of this type are sent to an object that implements SipApplicationSessionActivationListener. since the specification doesn't differentiate between different causes for activation/passivation such as failover, replication, passivation because of non activity this class is added to provide the application for the root cause of the notification allowing finer grained control

Author:
jean.deruelle@gmail.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SipApplicationSessionActivationEvent(SipApplicationSession session, SessionActivationNotificationCause cause)
          Constructs an event that notifies an object that it has been activated/passivated for a session.
 
Method Summary
 SessionActivationNotificationCause getCause()
          Returns the cause on why the listener is called for the application session.
 
Methods inherited from class javax.servlet.sip.SipApplicationSessionEvent
getApplicationSession
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SipApplicationSessionActivationEvent

public SipApplicationSessionActivationEvent(SipApplicationSession session,
                                            SessionActivationNotificationCause cause)
Constructs an event that notifies an object that it has been activated/passivated for a session. To receive the event, the object must implement SipApplicationSessionActivationListener .

Parameters:
session - the session for which the notification is generated
cause - the root cause on why the notification has been generated (failover, replication, ...)
Method Detail

getCause

public SessionActivationNotificationCause getCause()
Returns the cause on why the listener is called for the application session.



Copyright © 2011. All Rights Reserved.