Package org.jboss.wsf.spi.deployment

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile.toURL()


/*     */   {
/* 248 */     if (securityConfig.getKeyStoreFile() != null) {
/*     */       try
/*     */       {
/* 251 */         UnifiedVirtualFile child = vfsRoot.findChild(securityConfig.getKeyStoreFile());
/* 252 */         securityConfig.setKeyStoreURL(child.toURL());
/*     */       }
/*     */       catch (IOException e)
/*     */       {
/*     */       }
/*     */     }
View Full Code Here


/*     */     }
/* 258 */     if (securityConfig.getTrustStoreFile() != null)
/*     */       try
/*     */       {
/* 261 */         UnifiedVirtualFile child = vfsRoot.findChild(securityConfig.getTrustStoreFile());
/* 262 */         securityConfig.setTrustStoreURL(child.toURL());
/*     */       }
/*     */       catch (IOException e)
/*     */       {
/*     */       }
/*     */   }
View Full Code Here

/*     */
/*     */     }
/*     */
/*  98 */     if (wsdd != null)
/*     */     {
/* 101 */       URL wsddUrl = wsdd.toURL();
/*     */       try
/*     */       {
/* 104 */         InputStream is = wsddUrl.openStream();
/* 105 */         Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
/* 106 */         ObjectModelFactory factory = new WebservicesFactory(wsddUrl);
View Full Code Here

/*     */   {
/* 108 */     URL resourceURL = null;
/*     */     try
/*     */     {
/* 111 */       UnifiedVirtualFile child = vfsRoot.findChild(resource);
/* 112 */       resourceURL = child.toURL();
/*     */     }
/*     */     catch (IOException ex)
/*     */     {
/* 116 */       if (failOnNotFound)
/* 117 */         throw new WSException("Cannot find required security resource: " + resource);
View Full Code Here

      ClassLoader cl = UnifiedVirtualFile.class.getClassLoader();
      ResourceLoaderAdapter ula = new ResourceLoaderAdapter(cl);
     
      UnifiedVirtualFile deployment = ula.findChild("org/jboss/wsf/spi/deployment/");
      assertNotNull(deployment);
      assertTrue(deployment.toURL().toExternalForm().contains("jar!")); //check we got a URL to a jar
      assertEquals("deployment/", deployment.getName());
      List<UnifiedVirtualFile> children = deployment.getChildren();
      assertNotNull(children);
      assertTrue(children.size() > 0);
      UnifiedVirtualFile unifiedVirtualFile = null;
View Full Code Here

      ClassLoader cl = ResourceLoaderAdapter.class.getClassLoader();
      ResourceLoaderAdapter ula = new ResourceLoaderAdapter(cl);
     
      UnifiedVirtualFile common = ula.findChild("org/jboss/wsf/common/");
      assertNotNull(common);
      assertTrue(common.toURL().toExternalForm().contains("target" + File.separator + "classes")); //check we got a URL to dir
      assertEquals("common/", common.getName());
      List<UnifiedVirtualFile> children = common.getChildren();
      assertNotNull(children);
      assertTrue(children.size() > 0);
      UnifiedVirtualFile resourceLoaderAdapter = null;
View Full Code Here

      assertNotNull(rootURL);
      URLLoaderAdapter ula = new URLLoaderAdapter(rootURL);
     
      UnifiedVirtualFile deployment = ula.findChild("org/jboss/wsf/spi/deployment/");
      assertNotNull(deployment);
      assertTrue(deployment.toURL().toExternalForm().contains("jar!")); //check we got a URL to a jar
      assertEquals("deployment/", deployment.getName());
      List<UnifiedVirtualFile> children = deployment.getChildren();
      assertNotNull(children);
      assertTrue(children.size() > 0);
      UnifiedVirtualFile unifiedVirtualFile = null;
View Full Code Here

      assertNotNull(rootURL);
      URLLoaderAdapter ula = new URLLoaderAdapter(rootURL);
     
      UnifiedVirtualFile common = ula.findChild("org/jboss/wsf/common/");
      assertNotNull(common);
      assertTrue(common.toURL().toExternalForm().contains("target" + File.separator + "classes")); //check we got a URL to dir
      assertEquals("common/", common.getName());
      List<UnifiedVirtualFile> children = common.getChildren();
      assertNotNull(children);
      assertTrue(children.size() > 0);
      UnifiedVirtualFile urlLoaderAdapter = null;
View Full Code Here

      assertNotNull(rootURL);
      URLLoaderAdapter ula = new URLLoaderAdapter(rootURL);
     
      UnifiedVirtualFile deployment = ula.findChild("org/jboss/wsf/spi/deployment/");
      assertNotNull(deployment);
      assertTrue(deployment.toURL().toExternalForm().contains("jar!")); //check we got a URL to a jar
      assertEquals("deployment/", deployment.getName());
      List<UnifiedVirtualFile> children = deployment.getChildren();
      assertNotNull(children);
      assertTrue(children.size() > 0);
      UnifiedVirtualFile unifiedVirtualFile = null;
View Full Code Here

      assertNotNull(rootURL);
      URLLoaderAdapter ula = new URLLoaderAdapter(rootURL);
     
      UnifiedVirtualFile common = ula.findChild("org/jboss/wsf/common/");
      assertNotNull(common);
      assertTrue(common.toURL().toExternalForm().contains("target/classes")); //check we got a URL to dir
      assertEquals("common/", common.getName());
      List<UnifiedVirtualFile> children = common.getChildren();
      assertNotNull(children);
      assertTrue(children.size() > 0);
      UnifiedVirtualFile urlLoaderAdapter = null;
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.