Package org.cipango.sipapp

Examples of org.cipango.sipapp.SipDescriptor


  XmlParser getParser(boolean validating) throws ClassNotFoundException
  {
    String value = (validating ? "true" : "false");
    System.setProperty("org.eclipse.jetty.xml.XmlParser.Validating", value);
   
    return new SipDescriptor(null).newParser();
  }
View Full Code Here


  @Test
  public void testSipXml() throws Exception
  {
    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

  @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.SipDescriptor

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.