Examples of SipServlet


Examples of javax.servlet.sip.SipServlet

        ArrayList<SipServlet> sipServletsWithListeners = sipFactory.getSipApplicationListeners()
                                                               .getSipServletsWithListeners();
        ListIterator<SipServlet> it = sipServletsWithListeners.listIterator();

        while (it.hasNext()) {
            SipServlet servlet = it.next();

            if (servlet.getClass().getName().equals(getServletClass())) {
                return servlet;
            }
        }

        Loader loader = getLoader();
View Full Code Here

Examples of javax.servlet.sip.annotation.SipServlet

        {
            Log.warn(clazz.getName()+" is not assignable from javax.servlet.sip.SipServlet");
            return;
        }
       
        SipServlet annotation = (SipServlet) clazz.getAnnotation(SipServlet.class);
       
       
        SipServletHolder holder = new SipServletHolder();
       
        SipAppContext context = (SipAppContext) _context;
   
        if (!Util.isEmpty(annotation.applicationName()))
        {
         
          if (context.getName() != null && !context.getName().equals(annotation.applicationName()))
          throw new IllegalStateException("App-name in sip.xml: " + context.getName()
              + " does not match with SipApplication annotation: " + annotation.applicationName());
          context.getSipMetaData().setAppName(annotation.applicationName());
        }
       
        if (annotation.name() != null && !"".equals(annotation.name()))
          holder.setName(annotation.name());
        else
          holder.setName(_className.substring(_className.lastIndexOf('.') + 1));
       
        holder.setInitOrder(annotation.loadOnStartup());
        holder.setDisplayName(annotation.description());
        holder.setClassName(_className);
       
        context.addSipServlet(holder);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.