Package org.cipango.sipapp

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


    //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

  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

  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

  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

  }

  @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

TOP

Related Classes of org.cipango.sipapp.StandardDescriptorProcessor

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.