Package org.apache.commons.digester

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


        // Register our local copy of the DTDs that we can find
        for (int i = 0; i < registrations.length; i += 2) {
            URL url = this.getClass().getResource(registrations[i+1]);
            if (url != null) {
                digester.register(registrations[i], url.toString());
            }
        }

        // Configure the processing rules that we need
        digester.addCallMethod("web-app/servlet-mapping",
View Full Code Here


        Digester digester = new Digester();
        digester.push(config);
        digester.setNamespaceAware(true);
        digester.setValidating(true);
        digester.addRuleSet(new ConfigRuleSet());
        digester.register
            (publicId,
             this.getClass().getResource
             (entityURL).toString());

        // Parse the test struts-config.xml file
View Full Code Here

        // Register our local copy of the DTDs that we can find
        for (int i = 0; i < registrations.length; i += 2) {
            URL url = this.getClass().getResource(registrations[i+1]);
            if (url != null)
                digester.register(registrations[i], url.toString());
        }

        // Configure the processing rules that we need
        digester.addCallMethod("web-app/servlet-mapping",
                               "addServletMapping", 2);
View Full Code Here

        // Register our local copy of the DTDs that we can find
        for (int i = 0; i < registrations.length; i += 2) {
            URL url = this.getClass().getResource(registrations[i+1]);
            if (url != null) {
                digester.register(registrations[i], url.toString());
            }
        }

        // Configure the processing rules that we need
        digester.addCallMethod("web-app/servlet-mapping",
View Full Code Here

        Digester digester = new Digester();
        digester.push(config);
        digester.setNamespaceAware(true);
        digester.setValidating(true);
        digester.addRuleSet(new ConfigRuleSet());
        digester.register
            (publicId,
             this.getClass().getResource
             (entityURL).toString());

        // Parse the test struts-config.xml file
View Full Code Here

    digester.push(resources);

    for (int i = 0; i < registrations.length; i += 2) {
      URL url = (SalamandraWebConfigInitializer.class).getResource(registrations[i + 1]);
      if (url != null)
        digester.register(registrations[i], url.toString());
    }
   
    digester.addSetProperties("salamandra-web-config");
    digester.addObjectCreate("salamandra-web-config/xml-binding-definitions","org.salamandra.web.core.config.digester.XmlBindingDefinitions");
    digester.addSetProperties("salamandra-web-config/xml-binding-definitions");
View Full Code Here

        for (int i = 0; i < registrations.length; i += 2) {
            URL url =
                    ValidatorResourcesInitializer.class.getResource(
                            registrations[i + 1]);
            if (url != null) {
                digester.register(registrations[i], url.toString());
            }
        }

        digester.push(resources);
View Full Code Here

        // register DTDs
        for (int i = 0; i < registrations.length; i += 2) {
            URL url = this.getClass().getResource(registrations[i + 1]);
            if (url != null) {
                digester.register(registrations[i], url.toString());
            }
        }

        for (int i = 0; i < streams.length; i++) {
            digester.push(this);
View Full Code Here

        // register DTDs
        for (int i = 0; i < REGISTRATIONS.length; i += 2) {
            URL url = this.getClass().getResource(REGISTRATIONS[i + 1]);
            if (url != null) {
                digester.register(REGISTRATIONS[i], url.toString());
            }
        }
        return digester;
    }
View Full Code Here

        // this.getClass().getClassLoader().getResource(COMPONENT_CONFIG_DTD_URI);
  // new
        // URL("resource:/com/exadel/vcp/builder/config/component-config.dtd");
  getLog()
    .debug("Register config DTD as URI " + COMPONENT_CONFIG_DTD_URI);
  digester.register(GENERATOR_CONFIG_PUBLIC_ID, COMPONENT_CONFIG_DTD_URI);
  // } catch (MalformedURLException e) {
  // throw new ParsingException("Malformed URL for internal DTD
        // reference",e);
  // }
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.