org.mobicents.servlet.sip.notification
Class SipSessionActivationEvent

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

public class SipSessionActivationEvent
extends SipSessionEvent

Events of this type are sent to an object that implements SipSessionActivationListener. 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

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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SipSessionActivationEvent(SipSession 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.SipSessionEvent
getSession
 
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

SipSessionActivationEvent

public SipSessionActivationEvent(SipSession 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 SipSessionActivationListener

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.