Package org.jboss.util.xml

Examples of org.jboss.util.xml.JBossEntityResolver


               throw new DeploymentException("Failed to find META-INF/jboss-service.xml for archive " + di.shortName);

            stream = docURL.openStream();
            InputSource is = new InputSource(stream);
            is.setSystemId(docURL.toString());
            parser.setEntityResolver(new JBossEntityResolver());
            di.document = parser.parse(is);
         }
         else
         {
            log.debug("Using existing deployment.document");
View Full Code Here


      try
      {
         DocumentBuilder db = dbf.newDocumentBuilder();
         String urlStr = di.url.toString();
         String shortURL = ServerConfigUtil.shortUrlFromServerHome(urlStr);
         JBossEntityResolver resolver = new JBossEntityResolver();
         db.setEntityResolver(resolver);
         db.setErrorHandler(new JBossErrorHandler(shortURL, resolver));

         if (ddSuffix != null && urlStr.endsWith(ddSuffix))
            di.document = db.parse(di.url.openStream());
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

/*     */         }
/*     */         catch (IllegalPropertyException e)
/*     */         {
/*     */         }
/*     */
/* 252 */         reader.setEntityResolver(new JBossEntityResolver());
/*     */
/* 255 */         Document doc = reader.read(this.url);
/* 256 */         this.element = doc.getRootElement();
/* 257 */         DocumentType type = doc.getDocType();
/*     */
View Full Code Here

/*     */ {
/*  81 */   private static final Logger log = Logger.getLogger(SchemaBindingBuilder.class);
/*     */
/*     */   public SchemaBinding buildSchemaBinding(XSModel model, JavaWsdlMapping wsdlMapping)
/*     */   {
/*  88 */     JBossEntityResolver resolver = new JBossWSEntityResolver();
/*  89 */     SchemaBinding schemaBinding = XsdBinder.bind(model, new DefaultSchemaResolver(resolver));
/*     */
/*  91 */     schemaBinding.setIgnoreLowLine(false);
/*  92 */     schemaBinding.setIgnoreUnresolvedFieldOrClass(false);
/*  93 */     schemaBinding.setUnmarshalListsToArrays(true);
View Full Code Here

/*     */
/*  62 */   private Map<String, Boolean> schemaParseAnnotationsByUri = Collections.emptyMap();
/*     */
/*     */   public DefaultSchemaResolver()
/*     */   {
/*  66 */     this(new JBossEntityResolver());
/*     */   }
View Full Code Here

/*     */     try
/*     */     {
/* 219 */       DocumentBuilder db = this.dbf.newDocumentBuilder();
/* 220 */       String urlStr = di.url.toString();
/* 221 */       String shortURL = ServerConfigUtil.shortUrlFromServerHome(urlStr);
/* 222 */       JBossEntityResolver resolver = new JBossEntityResolver();
/* 223 */       db.setEntityResolver(resolver);
/* 224 */       db.setErrorHandler(new JBossErrorHandler(shortURL, resolver));
/*     */
/* 226 */       if ((this.ddSuffix != null) && (urlStr.endsWith(this.ddSuffix)))
/* 227 */         di.document = db.parse(di.url.openStream());
View Full Code Here

/* 616 */           throw new DeploymentException("Failed to find META-INF/jboss-service.xml for archive " + di.shortName);
/*     */         }
/* 618 */         stream = docURL.openStream();
/* 619 */         InputSource is = new InputSource(stream);
/* 620 */         is.setSystemId(docURL.toString());
/* 621 */         parser.setEntityResolver(new JBossEntityResolver());
/* 622 */         di.document = parser.parse(is);
/*     */       }
/*     */       else
/*     */       {
/* 626 */         this.log.debug("Using existing deployment.document");
View Full Code Here

/*     */     try
/*     */     {
/* 175 */       DocumentBuilder parser = getDocumentBuilderFactory().newDocumentBuilder();
/* 176 */       InputSource source = new InputSource(is);
/* 177 */       source.setSystemId(file.toURI().toString());
/* 178 */       parser.setEntityResolver(new JBossEntityResolver());
/* 179 */       Document localDocument = parser.parse(is);
/*     */       return localDocument;
/*     */     }
/*     */     finally
/*     */     {
View Full Code Here

/*     */     }
/*     */
/* 109 */     this.delegateHandler = new DelegatingContentHandler(null);
/* 110 */     this.reader.setContentHandler(this.delegateHandler);
/* 111 */     this.reader.setErrorHandler(MetaDataErrorHandler.INSTANCE);
/* 112 */     this.reader.setEntityResolver(new JBossEntityResolver());
/*     */     try
/*     */     {
/* 116 */       this.reader.setProperty("http://xml.org/sax/properties/lexical-handler", this.delegateHandler);
/*     */     }
/*     */     catch (Exception e)
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.