SipSessionEvent
The SipSessionEvent class represents event notifications for changes to SipSession instances within a SIP servlet application. It extends java.util.EventObject and implements java.io.Serializable, enabling it to be used in distributed environments. This class is used to notify listeners of significant lifecycle events related to a SipSession, such as creation, invalidation, or state changes. It works in conjunction with SipSessionListener implementations, which define the callback methods triggered by these events, allowing applications to monitor and respond to session-level changes.
Fields:
Fields inherited from class java.util.EventObject:
source.
Constructor:
SipSessionEvent
public SipSessionEvent(SipSession source)
This constructor creates a new SipSessionEvent object, representing an event associated with the specified SipSession. It is used to notify listeners of changes or actions affecting the session.
Parameters:
source: The SipSession object that is the source of the event.
Methods:
getSession
public SipSession getSession()
This method retrieves the SipSession object associated with the event. It provides access to the session that triggered the event, allowing listeners to handle changes or actions affecting that session.
Returns:
The SipSession object that is the source of the event.
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.
Start innovating with Mobius
What's next? Let's talk!