javax.servlet.sip
Class SipSessionBindingEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.servlet.sip.SipSessionBindingEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class SipSessionBindingEvent
- extends java.util.EventObject
Events of this type are either sent to an object that implements
SipSessionBindingListener
when it is bound or unbound from a
session, or to a SipSessionAttributeListener
that has been
configured in the deployment descriptor when any attribute is bound,
unbound or replaced in a session.
The session binds the object by a call to
SipSession.setAttribute
and unbinds the object by a call
to SipSession.removeAttribute
.
- See Also:
SipSession
,
SipSessionBindingListener
,
SipSessionAttributeListener
, Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
SipSessionBindingEvent(SipSession session,
java.lang.String name)
Constructs an event that notifies an object that it has been bound
to or unbound from a session. |
Method Summary |
java.lang.String |
getName()
Returns the name with which the object is bound to or unbound from
the session. |
SipSession |
getSession()
Returns the session to or from which the object is bound or 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 |
SipSessionBindingEvent
public SipSessionBindingEvent(SipSession session,
java.lang.String name)
- Constructs an event that notifies an object that it has been bound
to or unbound from a session. To receive the event, the object must
implement
SipSessionBindingListener
.
- Parameters:
session
- the session to which the object is bound or unboundname
- the name with which the object is bound or unbound
getName
public java.lang.String getName()
- Returns the name with which the object is bound to or unbound from
the session.
- Returns:
- a string specifying the name with which the object is bound
to or unbound from the session
getSession
public SipSession getSession()
- Returns the session to or from which the object is bound or unbound.
- Returns:
- the session to which the object is bound or from which the
object is unbound
SIP Servlet API 1.0