Package javax.servlet.sip

Examples of javax.servlet.sip.SipSessionBindingEvent


      unbindValue(name, oldValue);
     
      SipSessionAttributeListener[] listeners = _appSession.getContext().getSessionAttributeListeners();
      if (listeners.length > 0)
      {
        SipSessionBindingEvent e = new SipSessionBindingEvent(this, name);
        for (SipSessionAttributeListener listener : listeners)
          listener.attributeRemoved(e);
      }
    }
  }
View Full Code Here


      bindValue(name, value);
     
      SipSessionAttributeListener[] listeners = _appSession.getContext().getSessionAttributeListeners();
      if (listeners.length > 0)
      {
        SipSessionBindingEvent e = new SipSessionBindingEvent(this, name);
        for (SipSessionAttributeListener listener : listeners)
        {
          if (oldValue == null)
            listener.attributeAdded(e);
          else
View Full Code Here

  }
 
  private void bindValue(String name, Object value)
  {
    if (value != null && value instanceof SipSessionBindingListener)
      ((SipSessionBindingListener) value).valueBound(new SipSessionBindingEvent(this, name));
  }
View Full Code Here

  }
 
  private void unbindValue(String name, Object value)
  {
    if (value != null && value instanceof SipSessionBindingListener)
      ((SipSessionBindingListener) value).valueUnbound(new SipSessionBindingEvent(this, name));
  }
View Full Code Here

   * @param name
   */
  private void attributeAdded(String name,Object addedObject) {
    callAttributeListeners(AttributeCallback.ADDED, name);
    if(addedObject instanceof SipSessionBindingListener){
      ((SipSessionBindingListener)addedObject).valueBound(new SipSessionBindingEvent(this,name));
    }
  }
View Full Code Here

   * @param name
   */
  private void attributeReplaced(String name,Object oldValue,Object newValue) {
    callAttributeListeners(AttributeCallback.REPLACED, name);
    if(oldValue instanceof SipSessionBindingListener){
      ((SipSessionBindingListener)oldValue).valueUnbound(new SipSessionBindingEvent(this,name));
    }
    if(newValue instanceof SipSessionBindingListener){
      ((SipSessionBindingListener)newValue).valueBound(new SipSessionBindingEvent(this,name));
    }
  }
View Full Code Here

   * @param name
   */
  private void attributeRemoved(String name, Object removedValue) {
    callAttributeListeners(AttributeCallback.REMOVED, name);
    if(removedValue instanceof SipSessionBindingListener){
      ((SipSessionBindingListener)removedValue).valueUnbound(new SipSessionBindingEvent(this,name));
    }
  }
View Full Code Here

TOP

Related Classes of javax.servlet.sip.SipSessionBindingEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.