Package org.jboss.util.xml

Examples of org.jboss.util.xml.JBossEntityResolver


/*  63 */     log.debug("found application-client.xml " + ddResource);
/*     */
/*  65 */     ApplicationClientDDObjectFactory factory = new ApplicationClientDDObjectFactory();
/*  66 */     UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
/*  67 */     Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller();
/*  68 */     unmarshaller.setEntityResolver(new JBossEntityResolver());
/*  69 */     unmarshaller.setNamespaceAware(true);
/*  70 */     unmarshaller.setSchemaValidation(true);
/*  71 */     unmarshaller.setValidation(true);
/*     */
/*  73 */     ApplicationClientDD dd = (ApplicationClientDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null);
View Full Code Here


/*   72 */         dd = new EjbJarDD();
/*      */       }
/*   74 */       factory = new JBossDDObjectFactory(dd);
/*   75 */       UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
/*   76 */       unmarshaller = unmarshallerFactory.newUnmarshaller();
/*   77 */       unmarshaller.setEntityResolver(new JBossEntityResolver());
/*   78 */       unmarshaller.setNamespaceAware(true);
/*   79 */       unmarshaller.setSchemaValidation(true);
/*   80 */       unmarshaller.setValidation(true);
/*      */
/*   82 */       dd = (EjbJarDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null);
View Full Code Here

/*  64 */     log.debug("found jboss-client.xml " + ddResource);
/*     */
/*  66 */     JBossClientDDObjectFactory factory = new JBossClientDDObjectFactory(dd);
/*  67 */     UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
/*  68 */     Unmarshaller unmarshaller = unmarshallerFactory.newUnmarshaller();
/*  69 */     unmarshaller.setEntityResolver(new JBossEntityResolver());
/*  70 */     unmarshaller.setNamespaceAware(true);
/*  71 */     unmarshaller.setSchemaValidation(true);
/*  72 */     unmarshaller.setValidation(true);
/*     */
/*  74 */     dd = (ApplicationClientDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null);
View Full Code Here

/* 312 */       docBuilderFactory.setValidating(this.validateDTDs);
/*     */
/* 316 */       docBuilderFactory.setNamespaceAware(true);
/*     */
/* 323 */       DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
/* 324 */       JBossEntityResolver lr = new JBossEntityResolver();
/* 325 */       LocalErrorHandler eh = new LocalErrorHandler(inPath, lr);
/* 326 */       docBuilder.setEntityResolver(lr);
/* 327 */       docBuilder.setErrorHandler(eh);
/*     */
/* 329 */       Document doc = docBuilder.parse(is);
View Full Code Here

/*   72 */       log.debug("found ejb-jar.xml " + ddResource);
/*      */
/*   74 */       factory = new EjbJarDDObjectFactory();
/*   75 */       UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
/*   76 */       unmarshaller = unmarshallerFactory.newUnmarshaller();
/*   77 */       unmarshaller.setEntityResolver(new JBossEntityResolver());
/*   78 */       unmarshaller.setNamespaceAware(true);
/*   79 */       unmarshaller.setSchemaValidation(true);
/*   80 */       unmarshaller.setValidation(true);
/*      */
/*   82 */       dd = (EjbJarDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null);
View Full Code Here

      }

      delegateHandler = new DelegatingContentHandler();
      reader.setContentHandler(delegateHandler);
      reader.setErrorHandler(MetaDataErrorHandler.INSTANCE);
      reader.setEntityResolver(new JBossEntityResolver());
      // LexicalHandler
      try
      {
         reader.setProperty("http://xml.org/sax/properties/lexical-handler", delegateHandler);
      }
View Full Code Here

         throw new IOException("Deployment plan does not contain an entry: " + DeploymentMetaData.ENTRY_NAME);

      try
      {
         SAXReader reader = new SAXReader();
         reader.setEntityResolver(new JBossEntityResolver());

         Document metaDoc = reader.read(metaTmpFile);
         metaData = new DeploymentMetaData(metaDoc);
         log.debug(DeploymentMetaData.ENTRY_NAME + "\n" + metaData.toXMLString());
      }
View Full Code Here

      }

      delegateHandler = new DelegatingContentHandler();
      reader.setContentHandler(delegateHandler);
      reader.setErrorHandler(MetaDataErrorHandler.INSTANCE);
      reader.setEntityResolver(new JBossEntityResolver());

/*
      setFeature(Unmarshaller.VALIDATION, true);
      setFeature(Unmarshaller.SCHEMA_VALIDATION, true);
      setFeature(Unmarshaller.SCHEMA_FULL_CHECKING, true);
View Full Code Here

      try
      {
         DocumentBuilder parser = getDocumentBuilderFactory().newDocumentBuilder();
         InputSource source = new InputSource(is);
         source.setSystemId(file.toURI().toString());
         parser.setEntityResolver(new JBossEntityResolver());
         return parser.parse(is);
      }
      finally
      {
         try
View Full Code Here

   private Map schemaInitByUri = Collections.EMPTY_MAP;
   private Map schemaParseAnnotationsByUri = Collections.EMPTY_MAP;

   public DefaultSchemaResolver()
   {
      this(new JBossEntityResolver());
   }
View Full Code Here

TOP

Related Classes of org.jboss.util.xml.JBossEntityResolver

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.