Package org.jboss.util.xml.catalog

Examples of org.jboss.util.xml.catalog.Resolver


    * @param url - the location of the catalog xml file
    * @throws IOException if the catalog files cannot be loaded
    */
   public CatalogLocation(URL url) throws IOException
   {
      catologResolver = new Resolver();
      catologResolver.setCatalogManager(CatalogManager.getStaticManager());
      catologResolver.setupReaders();
      catologResolver.parseCatalog(url);
      this.location=url;
   }
View Full Code Here


    * @throws MalformedURLException - in error case
    * @throws URISyntaxException - if the url can't be resolved
    */
   public void testResolver() throws IOException, MalformedURLException, URISyntaxException{
      if (true) return;
      final Resolver toTest=new Resolver();
      //If the source document contains "oasis-xml-catalog" processing instructions,
      // should they be used?
      System.setProperty("xml.catalog.allowPI", "true");
      //Which identifier is preferred, "public" or "system"?
      System.setProperty("xml.catalog.prefer", "system");
      //If non-zero, the Catalog classes will print informative and debugging messages.
      //The higher the number, the more messages.
      System.setProperty("xml.catalog.verbosity", "0");
     
      toTest.setCatalogManager(CatalogManager.getStaticManager());
      toTest.setupReaders();
     
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      URL url = loader.getResource("jax-ws-catalog.xml");
      toTest.parseCatalog(url);
     
      final String systemID="http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_1.dtd";
      final String publicID="-//JBoss//DTD JBOSS XMBEAN 1.1//EN";
     
      String resolved = toTest.resolveSystem(systemID);
      this.testIfExists(resolved);
      System.out.println("Resolved: "+resolved);
     
      resolved = toTest.resolvePublic(publicID, systemID);
      System.out.println("Resolved: "+resolved);
      this.testIfExists(resolved);
     
   }
View Full Code Here

    * @param url - the location of the catalog xml file
    * @throws IOException if the catalog files cannot be loaded
    */
   public CatalogLocation(URL url) throws IOException
   {
      catologResolver = new Resolver();
      catologResolver.setCatalogManager(CatalogManager.getStaticManager());
      catologResolver.setupReaders();
      catologResolver.parseCatalog(url);
      this.location=url;
   }
View Full Code Here

    * @param url - the location of the catalog xml file
    * @throws IOException if the catalog files cannot be loaded
    */
   public CatalogLocation(URL url) throws IOException
   {
      catologResolver = new Resolver();
      catologResolver.setCatalogManager(CatalogManager.getStaticManager());
      catologResolver.setupReaders();
      catologResolver.parseCatalog(url);
      this.location=url;
   }
View Full Code Here

/*  62 */   private boolean isLastEntityResolved = false;
/*     */
/*     */   public CatalogLocation(URL url)
/*     */     throws IOException
/*     */   {
/*  83 */     this.catologResolver = new Resolver();
/*  84 */     this.catologResolver.setCatalogManager(CatalogManager.getStaticManager());
/*  85 */     this.catologResolver.setupReaders();
/*  86 */     this.catologResolver.parseCatalog(url);
/*  87 */     this.location = url;
/*     */   }
View Full Code Here

    * @param url - the location of the catalog xml file
    * @throws IOException if the catalog files cannot be loaded
    */
   public CatalogLocation(URL url) throws IOException
   {
      catologResolver = new Resolver();
      catologResolver.setCatalogManager(CatalogManager.getStaticManager());
      catologResolver.setupReaders();
      catologResolver.parseCatalog(url);
      this.location=url;
   }
View Full Code Here

TOP

Related Classes of org.jboss.util.xml.catalog.Resolver

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.