Package javax.servlet.sip

Examples of javax.servlet.sip.SipSessionEvent


    if (isValid() && getInvalidateWhenReady() && isReadyToInvalidate())
    {
      SipAppContext context = _appSession.getContext();
      SipSessionListener[] listeners = context.getSipSessionListeners();
      if (listeners.length > 0)
        context.fire(listeners, AppSession.__sessionReadyToInvalidate, new SipSessionEvent(this));
     
      if (isValid() && getInvalidateWhenReady())
        invalidate();
    }
  }
View Full Code Here


     * Notifies any interested session attributes that this session is about
     * to be passivated.
     */
    public void notifySessionWillPassivate() {
        Iterator attrValues = getSessionAttributeMap(false).values().iterator();
        SipSessionEvent sipSessionEvent = new SipSessionEvent(this);
        while (attrValues.hasNext()) {
            Object attrValue = attrValues.next();

            if (attrValue instanceof SipSessionActivationListener) {
                ((SipSessionActivationListener) attrValue).sessionWillPassivate(sipSessionEvent);
View Full Code Here

        ArrayList<SipSessionListener> someSessionListeners = getSipSessionListeners();

        if (someSessionListeners == null) {
            return;
        }
        SipSessionEvent sipSessionEvent = new SipSessionEvent(this);
        for (Iterator<SipSessionListener> lIter = someSessionListeners.iterator();
                lIter.hasNext();) {
            SipSessionListener listener = lIter.next();
            listener.sessionCreated(sipSessionEvent);
        }
View Full Code Here

        ArrayList<SipSessionListener> someSessionListeners = getSipSessionListeners();

        if (someSessionListeners == null) {
            return;
        }
        SipSessionEvent sipSessionEvent = new SipSessionEvent(this);
        for (Iterator<SipSessionListener> lIter = someSessionListeners.iterator();
                lIter.hasNext();) {
            SipSessionListener listener = lIter.next();
            listener.sessionDestroyed(sipSessionEvent);
        }
View Full Code Here

        List<SipSessionListener> listeners = getSipSessionListeners();
        if (listeners == null) {
            return;
        }
        Iterator<SipSessionListener> iter = listeners.iterator();
        SipSessionEvent sipSessionEvent = new SipSessionEvent(this);
        /**
         * Stop notifying the listeners if any of the following occur:
         *
         * (a) one of the listener invoked setInvalidateWhenReady(false)
         * (b) this session is no longer valid, may be because the listener
View Full Code Here

TOP

Related Classes of javax.servlet.sip.SipSessionEvent

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.