Package javax.servlet.sip

Examples of javax.servlet.sip.SipApplicationSessionBindingEvent


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


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

    List<SipApplicationSessionAttributeListener> sipApplicationSessionAttributeListeners =
        getSipApplicationListeners().getSipApplicationSessionAttributeListeners();
    // If there are at least one, create event and call all of them.
    if (sipApplicationSessionAttributeListeners != null
        && !sipApplicationSessionAttributeListeners.isEmpty()) {
      SipApplicationSessionBindingEvent event = new SipApplicationSessionBindingEvent(this,
          attributeName);
      for (SipApplicationSessionAttributeListener listener : sipApplicationSessionAttributeListeners) {
        callback.call(event, listener);
      }
    }
View Full Code Here

      while(entries.hasNext()){
                                Entry<String, Object> entry = entries.next();
                                entries.remove();
        Object value = entry.getValue();                               
        if(value instanceof SipApplicationSessionBindingListener){
          ((SipApplicationSessionBindingListener)value).valueUnbound(new SipApplicationSessionBindingEvent(this,entry.getKey()));
        }
      }
      }
  }
View Full Code Here

TOP

Related Classes of javax.servlet.sip.SipApplicationSessionBindingEvent

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.