javax.servlet.sip
Class SipApplicationSessionBindingEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.servlet.sip.SipApplicationSessionBindingEvent
All Implemented Interfaces:
java.io.Serializable

public class SipApplicationSessionBindingEvent
extends java.util.EventObject

Events of this type are either sent to an object that implements SipApplicationSessionBindingListener when it is bound or unbound from an application session, or to a SipApplicationSessionAttributeListener that has been configured in the deployment descriptor when any attribute is bound, unbound or replaced in an application session.

The session binds the object by a call to SipApplicationSession.setAttribute(String, Object) and unbinds the object by a call to SipApplicationSession.removeAttribute(String).

Since:
1.1
See Also:
SipApplicationSession, SipApplicationSessionBindingListener, SipApplicationSessionAttributeListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SipApplicationSessionBindingEvent(SipApplicationSession session, java.lang.String name)
          Constructs an event that notifies an object that it has been bound to or unbound from an application session.
 
Method Summary
 SipApplicationSession getApplicationSession()
          Returns the application session to or from which the object is bound or unbound.
 java.lang.String getName()
          Returns the name with which the object is bound to or unbound from the application 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
 

Constructor Detail

SipApplicationSessionBindingEvent

public SipApplicationSessionBindingEvent(SipApplicationSession session,
                                         java.lang.String name)
Constructs an event that notifies an object that it has been bound to or unbound from an application session. To receive the event, the object must implement SipApplicationSessionBindingListener.

Parameters:
session - the application ession to which the object is bound or unbound
name - the name with which the object is bound or unbound
Method Detail

getName

public java.lang.String getName()
Returns the name with which the object is bound to or unbound from the application session.

Returns:
a string specifying the name with which the object is bound to or unbound from the session

getApplicationSession

public SipApplicationSession getApplicationSession()
Returns the application session to or from which the object is bound or unbound.

Returns:
the application session to which the object is bound or from which the object is unbound