Package javax.servlet.sip

Examples of javax.servlet.sip.ServletTimer


        request.setAttribute(RESP_INV, response);
        request.getSession().setHandler(getServletName());

        // if leg2 took more than 10s to pick up call, cancel it.
        ServletTimer cancelCallTask = _timerService.createTimer(leg1.getApplicationSession(), 15000,
            false, new CancelCallTask(leg1, request));
       
        leg1.setAttribute(CancelCallTask.class.getName(), cancelCallTask);
       
        request.send();
View Full Code Here


      return new ScopedSession(session);
    return null;
  }

  public ServletTimer getTimer(String id) {
    ServletTimer timer = _appSession.getTimer(id);
    if (timer != null)
      return new ScopedTimer(timer);
    return null;
  }
View Full Code Here

     * @param timer The ServletTimer to add
     *
     * @return the previous ServletTimer, or null
     */
    public ServletTimer addServletTimer(ServletTimerImpl timer) {
        ServletTimer ret = null;

        if (timer != null) {
            ret = servletTimers.put(timer.getId(), timer);
        }

View Full Code Here

TOP

Related Classes of javax.servlet.sip.ServletTimer

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.