javax.servlet.sip
Class SipSessionBindingEvent
java.lang.Object
java.util.EventObject
javax.servlet.sip.SipSessionBindingEvent
- All Implemented Interfaces:
- Serializable
public class SipSessionBindingEvent
- extends 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
|
Method Summary |
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. |
SipSessionBindingEvent
public SipSessionBindingEvent(SipSession session,
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
.
- Parameters:
session - the session to which the object is bound or unboundname - the name with which the object is bound or unbound
getName
public String getName()
- Returns 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.
Copyright © 2012. All Rights Reserved.