SipApplicationSessionEvent
The SipApplicationSessionEvent class represents notifications for changes to SipApplicationSession instances in a SIP servlet application. Extends java.util.EventObject and implements java.io.Serializable. It is used to notify listeners of significant events such as session creation, expiration, or invalidation. This class attempts to extend the session's lifetime using the SipApplicationSession.setExpires(int) method, which helps enable SipApplicationSessionListener implementations to respond to session expiration events. This capability allows applications to dynamically manage session lifetimes based on runtime conditions. The class integrates seamlessly with the SipApplicationSessionListener interface, providing the tools to monitor and react to session lifecycle changes within the SIP application environment.
Fields:
Fields inherited from class java.util.EventObject:
source
Constructor:
SipApplicationSessionEvent
public SipApplicationSessionEvent(SipApplicationSession appSession)
This constructor creates a new SipApplicationSessionEvent object, representing an event associated with a specific SipApplicationSession. It is used to notify listeners of changes or lifecycle events related to the provided application session.
Parameter:
appSession: The SipApplicationSession instance associated with the event, such as an expired or invalidated session.
Methods:
getApplicationSession
public SipApplicationSession getApplicationSession()
This method retrieves the SipApplicationSession instance associated with the event. It is typically used by listeners to access details about the expired or affected session.
Returns:
SipApplicationSession object related to the event, such as an expired session.
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!