SipApplicationSessionBindingEvent
The SipApplicationSessionBindingEvent class represents events related to the binding or unbinding of attributes in a SipApplicationSession. It extends java.util.EventObject and implements java.io.Serializable, allowing it to be used in distributed environments. These events are triggered when an object is bound to or unbound from an application session using the SipApplicationSession.setAttribute(String, Object) or SipApplicationSession.removeAttribute(String) methods. They are sent either to objects implementing the SipApplicationSessionBindingListener interface when they are directly affected, or to SipApplicationSessionAttributeListener implementations configured in the deployment descriptor, which respond to any attribute being bound, unbound, or replaced in the session. This class enables applications to monitor and manage changes to session attributes, providing hooks for custom behavior based on session attribute lifecycle events.
Fields:
Fields inherited from class java.util.EventObject:
source.
Constructor:
SipApplicationSessionBindingEvent
public SipApplicationSessionBindingEvent(SipApplicationSession session, java.lang.String name)
This constructor creates a SipApplicationSessionBindingEvent object, which is used to notify an object when it is bound to or unbound from a SipApplicationSession. Objects receive this event if they implement the SipApplicationSessionBindingListener interface.
Parameters:
session: The SipApplicationSession to which the object is being bound or from which it is being unbound.
name: The name under which the object is bound or unbound in the application session.
Methods:
getName
public java.lang.String getName()
Retrieves the name under which the object is bound to or unbound from the SipApplicationSession. This name helps identify the specific attribute affected by the event.
Returns:
The string specifying the name used to bind or unbind the object in the session.
getApplicationSession
public SipApplicationSession getApplicationSession()
Retrieves the SipApplicationSession to or from which the object is bound or unbound. This allows listeners to access the session associated with the event.
Returns the SipApplicationSession instance to which the object is bound or from which it is unbound.
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!