Package javax.servlet.sip

Examples of javax.servlet.sip.SipApplicationSessionListener


  }
 
  public static void main(String[] args) {
    ServletHolder holder = new ServletHolder();
   
    SipApplicationSessionListener listener = (SipApplicationSessionListener)
      Proxy.newProxyInstance(holder.getClass().getClassLoader(),
        new Class[] { SipApplicationSessionListener.class },
        holder);
   
    listener.sessionCreated(null);
  }
View Full Code Here


        .getSipApplicationSessionListeners();

        SipApplicationSessionEvent sasEvent = new SipApplicationSessionEvent(this);
        for (Iterator<SipApplicationSessionListener> lIter = listeners.iterator();
                lIter.hasNext();) {
            SipApplicationSessionListener list = lIter.next();

            try {
                list.sessionDestroyed(sasEvent);
            } catch (Throwable t) {
                logger.log(Level.WARNING, "sas_listener_session_destroyed_invocation_error", this);
        logger.log(Level.WARNING, t.getMessage(), t);
            }
        }
View Full Code Here

         * (a) one of the listener invoked setInvalidateWhenReady(false)
         * (b) this session is no longer valid, may be because the listener
         *     has invoked invalidate() explicitly.
         */
        while (iter.hasNext() && invalidateWhenReady && isValid()) {
            SipApplicationSessionListener listener = iter.next();
            try {
                listener.sessionReadyToInvalidate(event);
            } catch (Throwable t) {
                logger.log(Level.WARNING, t.getMessage(), t);
            }
        }
    }
View Full Code Here

                        new SipApplicationSessionEvent(sas);

                for (Iterator<SipApplicationSessionListener> iter =
                        listeners.iterator();
                        iter.hasNext();) {
                    SipApplicationSessionListener listener = iter.next();
                    listener.sessionCreated(event);
                }
            }

            sas.initAppSessionTimer(sessionTimeout);
            sas.setIsInitialized(true);
View Full Code Here

TOP

Related Classes of javax.servlet.sip.SipApplicationSessionListener

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.