Package org.jboss.ws.core.utils

Examples of org.jboss.ws.core.utils.ResourceURL


/* 235 */             if (resourcePath.length() > 0) {
/* 236 */               resourcePath = resourcePath + "/";
/*     */             }
/* 238 */             resourcePath = this.expLocation + resourcePath + schemaLocation;
/* 239 */             URL resourceURL = this.dep.getMetaDataFileURL(resourcePath);
/* 240 */             InputStream is = new ResourceURL(resourceURL).openStream();
/* 241 */             if (is == null) {
/* 242 */               throw new IllegalArgumentException("Cannot find schema import in deployment: " + resourcePath);
/*     */             }
/* 244 */             FileOutputStream fos = new FileOutputStream(targetFile);
/* 245 */             IOUtils.copyStream(fos, is);
View Full Code Here


/*  70 */     if (mappingURL == null)
/*     */     {
/*  72 */       throw new IllegalArgumentException("JAXRPC mapping URL cannot be null");
/*     */     }
/*     */
/*  76 */     InputStream is = new ResourceURL(mappingURL).openStream();
/*     */     try
/*     */     {
/*  79 */       Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/*  80 */       JavaWsdlMapping javaWsdlMapping = (JavaWsdlMapping)unmarshaller.unmarshal(is, this, null);
/*  81 */       JavaWsdlMapping localJavaWsdlMapping1 = javaWsdlMapping;
View Full Code Here

/*     */
/* 175 */         log.debug("Load schema: " + nsURI + "=" + url);
/* 176 */         XMLInputSource inputSource = new XMLInputSource(null, url.toExternalForm(), null);
/*     */
/* 178 */         InputSource tmpSrc = resolver.resolveEntity(null, url.toExternalForm());
/* 179 */         InputStream in = tmpSrc.getByteStream() != null ? tmpSrc.getByteStream() : new ResourceURL(url).openStream();
/* 180 */         inputSource.setByteStream(in);
/*     */
/* 182 */         SchemaGrammar grammar = (SchemaGrammar)loader.loadGrammar(inputSource);
/* 183 */         if (grammar == null) {
/* 184 */           throw new IllegalStateException("Cannot load grammar: " + url);
View Full Code Here

/*     */   public WSSecurityConfiguration parse(URL configURL) throws IOException
/*     */   {
/*  84 */     if (configURL == null) {
/*  85 */       throw new IllegalArgumentException("Security config URL cannot be null");
/*     */     }
/*  87 */     InputStream is = new ResourceURL(configURL).openStream();
/*     */     try
/*     */     {
/*  90 */       Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/*  91 */       WSSecurityConfiguration configuration = (WSSecurityConfiguration)unmarshaller.unmarshal(is, this, null);
/*  92 */       WSSecurityConfiguration localWSSecurityConfiguration1 = configuration;
View Full Code Here

   public WSSecurityConfiguration parse(URL configURL) throws IOException
   {
      if (configURL == null)
         throw new IllegalArgumentException("Security config URL cannot be null");

      InputStream is = new ResourceURL(configURL).openStream();
      try
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         WSSecurityConfiguration configuration = (WSSecurityConfiguration)unmarshaller.unmarshal(is, this, null);
         return configuration;
View Full Code Here

   public WSSecurityConfiguration parse(URL configURL) throws IOException
   {
      if (configURL == null)
         throw new IllegalArgumentException("Security config URL cannot be null");

      InputStream is = new ResourceURL(configURL).openStream();
      try
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         WSSecurityConfiguration configuration = (WSSecurityConfiguration)unmarshaller.unmarshal(is, this, null);
         return configuration;
View Full Code Here

      String location = getOptionalAttribute(importEl, "schemaLocation");
      if (location == null)
         throw new IllegalArgumentException("schemaLocation is null for xsd:import");

      URL locationURL = getLocationURL(wsdlLoc, location);
      Element rootElement = DOMUtils.parse(new ResourceURL(locationURL).openStream());
      URL newloc = processSchemaInclude(types, locationURL, rootElement);
      if (newloc != null)
         importEl.setAttribute("schemaLocation", newloc.toExternalForm());
   }
View Full Code Here

         String location = getOptionalAttribute(includeEl, "schemaLocation");
         if (location == null)
            throw new IllegalArgumentException("schemaLocation is null for xsd:include");

         URL locationURL = getLocationURL(wsdlLoc, location);
         Element rootElement = DOMUtils.parse(new ResourceURL(locationURL).openStream());
         URL newloc = processSchemaInclude(types, locationURL, rootElement);
         if (newloc != null)
            includeEl.setAttribute("schemaLocation", newloc.toExternalForm());
      }
View Full Code Here

    */
   private Document getDocument(URL wsdlLocation) throws WSDLException
   {
      try
      {
         InputStream inputStream = new ResourceURL(wsdlLocation).openStream();
         try
         {
            DocumentBuilder builder = DOMUtils.getDocumentBuilder();
            return builder.parse(inputStream);
         }
View Full Code Here

   public WSSecurityConfiguration parse(URL configURL) throws IOException
   {
      if (configURL == null)
         throw new IllegalArgumentException("Security config URL cannot be null");

      InputStream is = new ResourceURL(configURL).openStream();
      try
      {
         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
         WSSecurityConfiguration configuration = (WSSecurityConfiguration)unmarshaller.unmarshal(is, this, null);
         return configuration;
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.utils.ResourceURL

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.