Examples of resolveEntity()


Examples of com.sun.org.apache.commons.digester.Digester.resolveEntity()

        // Digester digester = DigesterLoader.createDigester(sipXmlRules);
        EntityResolver entityResolver = new SipEntityResolver();
        digester.setValidating(false);
        digester.setClassLoader(SipParser.class.getClassLoader());
        digester.setEntityResolver(entityResolver);
        digester.resolveEntity(null, null);
        digester.setValidating(false);

        SipDeploymentDescriptorRuleSet ruleSet = new SipDeploymentDescriptorRuleSet();
        ruleSet.addRuleInstances(digester);
View Full Code Here

Examples of com.volantis.xml.schema.JarFileEntityResolver.resolveEntity()

        resolver.addSystemIdMapping(
            STYLE_CATEGORIES_SCHEMA_URI,
            STYLE_CATEGORIES_SCHEMA_LOCATION);

        final InputSource xmlInputSource =
            resolver.resolveEntity(null, STYLE_CATEGORIES_XML_URI);

        // Create a content handler and attach it to the reader
        final StyleCategoryContentHandler handler =
            new StyleCategoryContentHandler();
        reader.setContentHandler(handler);
View Full Code Here

Examples of mf.org.apache.xml.resolver.Catalog.resolveEntity()

    } else if (resType == Catalog.ENTITY) {
      System.out.println("Resolve ENTITY (name, publicid, systemid):");
      if (name != null) { System.out.println("       name: " + name); }
      if (publicId != null) { System.out.println("  public id: " + publicId); }
      if (systemId != null) { System.out.println("  system id: " + systemId); }
      result = resolver.resolveEntity(name, publicId, systemId);
    } else if (resType == Catalog.NOTATION) {
      System.out.println("Resolve NOTATION (name, publicid, systemid):");
      if (name != null) { System.out.println("       name: " + name); }
      if (publicId != null) { System.out.println("  public id: " + publicId); }
      if (systemId != null) { System.out.println("  system id: " + systemId); }
View Full Code Here

Examples of nu.validator.xml.PrudentHttpEntityResolver.resolveEntity()

            entityResolver.setAllowHtml(true);
            entityResolver.setAllowXhtml(true);
            TypedInputSource documentInput;
            if (methodIsGet()) {
                if (content == null) {
                    documentInput = (TypedInputSource) entityResolver.resolveEntity(
                            null, document);
                } else {
                    documentInput = new TypedInputSource(new StringReader(content));
                    if ("xml".equals(request.getParameter("parser"))) {
                        documentInput.setType("application/xhtml+xml");
View Full Code Here

Examples of org.apache.axis2.deployment.resolver.AARBasedWSDLLocator.resolveEntity()

public class WSDLLocatorTest extends TestCase {
   
    public void testGetInputSource() {
        AARBasedWSDLLocator aarBasedWSDLLocator=new AARBasedWSDLLocator(null, null, null);
        WarBasedWSDLLocator warBasedWSDLLocator=new WarBasedWSDLLocator(null, null, null);
        InputSource inputSource=aarBasedWSDLLocator.resolveEntity(null, "http://www.test.org/test.xsd", "http://www.test.org/schema.xsd");
        assertNotNull(inputSource);
        assertEquals(inputSource.getSystemId(), "http://www.test.org/test.xsd");
        inputSource=warBasedWSDLLocator.resolveEntity(null, "http://www.test.org/test.xsd", "http://www.test.org/schema.xsd");
        assertNotNull(inputSource);
        assertEquals(inputSource.getSystemId(), "http://www.test.org/test.xsd");
View Full Code Here

Examples of org.apache.axis2.deployment.resolver.AARFileBasedURIResolver.resolveEntity()

public class URIResolverTest extends TestCase {

    public void testResolveEntity() {
        AARFileBasedURIResolver aar = new AARFileBasedURIResolver(null);
        WarFileBasedURIResolver war = new WarFileBasedURIResolver(null);
        InputSource inputSource = aar.resolveEntity(null,
                "http://www.test.org/test.xsd",
                "http://www.test.org/schema.xsd");
        assertNotNull(inputSource);
        assertEquals(inputSource.getSystemId(), "http://www.test.org/test.xsd");
        inputSource = war.resolveEntity(null, "http://www.test.org/test.xsd",
View Full Code Here

Examples of org.apache.axis2.deployment.resolver.WarBasedWSDLLocator.resolveEntity()

        AARBasedWSDLLocator aarBasedWSDLLocator=new AARBasedWSDLLocator(null, null, null);
        WarBasedWSDLLocator warBasedWSDLLocator=new WarBasedWSDLLocator(null, null, null);
        InputSource inputSource=aarBasedWSDLLocator.resolveEntity(null, "http://www.test.org/test.xsd", "http://www.test.org/schema.xsd");
        assertNotNull(inputSource);
        assertEquals(inputSource.getSystemId(), "http://www.test.org/test.xsd");
        inputSource=warBasedWSDLLocator.resolveEntity(null, "http://www.test.org/test.xsd", "http://www.test.org/schema.xsd");
        assertNotNull(inputSource);
        assertEquals(inputSource.getSystemId(), "http://www.test.org/test.xsd");
    }

}
View Full Code Here

Examples of org.apache.axis2.deployment.resolver.WarFileBasedURIResolver.resolveEntity()

        InputSource inputSource = aar.resolveEntity(null,
                "http://www.test.org/test.xsd",
                "http://www.test.org/schema.xsd");
        assertNotNull(inputSource);
        assertEquals(inputSource.getSystemId(), "http://www.test.org/test.xsd");
        inputSource = war.resolveEntity(null, "http://www.test.org/test.xsd",
                "http://www.test.org/schema.xsd");
        assertNotNull(inputSource);
        assertEquals(inputSource.getSystemId(), "http://www.test.org/test.xsd");
    }
}
View Full Code Here

Examples of org.apache.commons.digester.Digester.resolveEntity()

          result = dtdResolver.resolveEntity(publicId, systemId);
        }
        if (result != null) {
          return result;
        }
        return digester.resolveEntity(publicId, systemId);
      }
    });

    addBaseRuleInstances(digester);
    addRuleInstances(digester);
View Full Code Here

Examples of org.apache.ws.commons.schema.resolver.URIResolver.resolveEntity()

        return name;
    }

    public ISchemaResolver resolve(String loc, String tns) throws IOException {
        URIResolver resolver = collection.getXmlSchemaCollection().getSchemaResolver();
        InputSource source = resolver.resolveEntity(tns, loc, id);
       
        SchemaCollection schemaCol = new SchemaCollection();
        schemaCol.setSchemaResolver(resolver);
        XmlSchema read = schemaCol.getXmlSchemaCollection().read(source);
       
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.