Examples of StandardDescriptorProcessor


Examples of org.cipango.sipapp.StandardDescriptorProcessor

  {
    System.setProperty("org.eclipse.jetty.xml.XmlParser.Validating", "false");
   
    SipDescriptor descriptor = new SipDescriptor(getResource("/org/cipango/xml/sip-xsd.xml"));
    descriptor.parse();
    StandardDescriptorProcessor processor = new StandardDescriptorProcessor();
    processor.process(new SipAppContext(), descriptor);
  }
View Full Code Here

Examples of org.cipango.sipapp.StandardDescriptorProcessor

    //System.setProperty("org.eclipse.jetty.xml.XmlParser.Validating", "false");
   
    SipAppContext context = new SipAppContext();
    SipMetaData metaData = context.getSipMetaData();
    metaData.setSipXml(getResource("/org/cipango/xml/sip-sample-1.0.xml"));
    metaData.addDescriptorProcessor(new StandardDescriptorProcessor());
    metaData.resolve(context);

    SipServletHandler servletHandler = (SipServletHandler) context.getServletHandler();
   
    assertEquals(SipAppContext.VERSION_10, context.getSpecVersion());
View Full Code Here

Examples of org.cipango.sipapp.StandardDescriptorProcessor

  public void testSipXml11() throws Exception
  {
    SipAppContext context = new SipAppContext();
    SipMetaData metaData = context.getSipMetaData();
    metaData.setSipXml(getResource("/org/cipango/xml/sip-sample-1.1.xml"));
    metaData.addDescriptorProcessor(new StandardDescriptorProcessor());
    metaData.resolve(context);
   
    assertEquals(SipAppContext.VERSION_11, context.getSpecVersion());
    assertEquals("SIP Servlet based Registrar", context.getDisplayName());
   
View Full Code Here

Examples of org.cipango.sipapp.StandardDescriptorProcessor

  public void testMappings11() throws Exception
  {
    SipAppContext context = new SipAppContext();
    SipMetaData metaData = context.getSipMetaData();
    metaData.setSipXml(getResource("/org/cipango/xml/sip-mappings-1.1.xml"));
    metaData.addDescriptorProcessor(new StandardDescriptorProcessor());
    metaData.resolve(context);
       
    assertEquals(SipAppContext.VERSION_11, context.getSpecVersion());
   
    SipServletHandler servletHandler = (SipServletHandler) context.getServletHandler();
View Full Code Here

Examples of org.cipango.sipapp.StandardDescriptorProcessor

  public void testNamespace() throws Exception
  {
    SipAppContext context = new SipAppContext();
    SipMetaData metaData = context.getSipMetaData();
    metaData.setSipXml(getResource("/org/cipango/xml/sip-namespace.xml"));
    metaData.addDescriptorProcessor(new StandardDescriptorProcessor());
    metaData.resolve(context);
   
    assertEquals(SipAppContext.VERSION_11, context.getSpecVersion());
   
    Enumeration<String> e = context.getInitParameterNames();
View Full Code Here

Examples of org.cipango.sipapp.StandardDescriptorProcessor

  }

  @Test
  public void testValidateSip() throws Exception
  {
    StandardDescriptorProcessor processor = new StandardDescriptorProcessor();
   
    SipDescriptor descriptor = new SipDescriptor(getResource("/org/cipango/xml/sip-validated-1.1.xml"));
    descriptor.setValidating(true);
    descriptor.parse();
     
    processor.process(new SipAppContext(), descriptor);
  }
View Full Code Here

Examples of org.eclipse.jetty.webapp.StandardDescriptorProcessor

            if (lib.exists() || lib.isDirectory())
                ((WebAppClassLoader)context.getClassLoader()).addJars(lib);
        }

        //add the processor to handle normal web.xml content
        context.getMetaData().addDescriptorProcessor(new StandardDescriptorProcessor());
       
        //add a processor to handle extended web.xml format
        context.getMetaData().addDescriptorProcessor(new QuickStartDescriptorProcessor());
       
        //add a decorator that will find introspectable annotations
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.