Examples of UnifiedVirtualFile


Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

      dep.setType(DeploymentType.JAXWS_JSE);

      if (dep instanceof ArchiveDeployment)
      {
         ArchiveDeployment arc = (ArchiveDeployment)dep;
         UnifiedVirtualFile rootFile = arc.getRootFile();
         if (rootFile == null)
         {
            rootFile = new ResourceLoaderAdapter(dep.getInitialClassLoader());
            arc.setRootFile(rootFile);
         }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

         if (resourceURL == null && getRootFile() != null)
         {
            try
            {
               UnifiedVirtualFile vfResource = getRootFile().findChild(resourcePath);
               resourceURL = vfResource.toURL();
            }
            catch (IOException e)
            {
               if (metadataFiles == null || metadataFiles.isEmpty())
               {
                  throw e;
               }
               else
               {
                  log.debug("Cannot get " + resourcePath + " from root file, trying with additional metadata files", e);
               }

            }
         }
         //scan additional metadata files (for instance originally attached to a VFSDeploymentUnit)
         if (resourceURL == null && metadataFiles != null && !metadataFiles.isEmpty())
         {
            UnifiedVirtualFile vfResource = null;
            for (UnifiedVirtualFile metadataFile : getMetadataFiles())
            {
               try
               {
                  UnifiedVirtualFile child = metadataFile.findChild(resourcePath);
                  if (child != null)
                  {
                     vfResource = child;
                     break;
                  }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

      dep.setType(DeploymentType.JAXWS_JSE);

      if (dep instanceof ArchiveDeployment)
      {
         ArchiveDeployment arc = (ArchiveDeployment)dep;
         UnifiedVirtualFile rootFile = arc.getRootFile();
         if (rootFile == null)
         {
            rootFile = new ResourceLoaderAdapter(dep.getInitialClassLoader());
            arc.setRootFile(rootFile);
         }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

            // ignore
         }

         if (resourceURL == null && getRootFile() != null)
         {
            UnifiedVirtualFile vfResource = getRootFile().findChild(resourcePath);
            resourceURL = vfResource.toURL();
         }
      }

      return resourceURL;
   }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

         // Try wsdlFile as child from root
         if (wsdlURL == null)
         {
            try
            {
               UnifiedVirtualFile vfsRoot = getUnifiedMetaData().getRootFile();
               wsdlURL = vfsRoot.findChild(wsdlFile).toURL();
            }
            catch (IOException ex)
            {
               throw new IllegalStateException("Cannot find wsdl: " + wsdlFile);
            }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

      EndpointMetaData epMetaData = ((CommonMessageContext)msgContext).getEndpointMetaData();
      ServiceMetaData serviceMetaData = epMetaData.getServiceMetaData();

      if(serviceMetaData.getSecurityConfiguration() == null) // might be set through ServiceObjectFactory
      {
         UnifiedVirtualFile vfsRoot = serviceMetaData.getUnifiedMetaData().getRootFile();
         WSSecurityConfiguration config = null;
         try
         {
            WSSecurityConfigFactory wsseConfFactory = WSSecurityConfigFactory.newInstance();
            config = wsseConfFactory.createConfiguration(vfsRoot, getConfigResourceName());
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

   private void setupSecurity(WSSecurityConfiguration securityConfig, UnifiedVirtualFile vfsRoot)
   {
      if (securityConfig.getKeyStoreFile() != null)
      {
         try {
            UnifiedVirtualFile child = vfsRoot.findChild( securityConfig.getKeyStoreFile() );
            securityConfig.setKeyStoreURL(child.toURL());
         } catch (IOException e) {
            // ignore
         }
      }

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

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

   public ServiceDelegateImpl(URL wsdlURL, QName serviceName, Class serviceClass)
   {
      // If this Service was constructed through the ServiceObjectFactory
      // this thread local association should be available
      usRef = ServiceObjectFactoryJAXWS.getServiceRefAssociation();
      UnifiedVirtualFile vfsRoot = (usRef != null ? vfsRoot = usRef.getVfsRoot() : new ResourceLoaderAdapter());

      // Verify wsdl access if this is not a generic Service
      if (wsdlURL != null && serviceClass != Service.class)
      {
         try
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

   private URL getSecurityConfig()
   {
      URL securityConfigURL = null;
      try
      {
         UnifiedVirtualFile vfConfig = vfsRoot.findChild("WEB-INF/" + WSSecurityOMFactory.CLIENT_RESOURCE_NAME);
         securityConfigURL = vfConfig.toURL();
      }
      catch (IOException ex)
      {
         // ignore
      }
      try
      {
         UnifiedVirtualFile vfConfig = vfsRoot.findChild("META-INF/" + WSSecurityOMFactory.CLIENT_RESOURCE_NAME);
         securityConfigURL = vfConfig.toURL();
      }
      catch (IOException ex)
      {
         // ignore
      }
View Full Code Here

Examples of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

   public ServiceDelegateImpl(URL wsdlURL, QName serviceName, Class serviceClass)
   {
      // If this Service was constructed through the ServiceObjectFactory
      // this thread local association should be available
      usRef = ServiceObjectFactoryJAXWS.getServiceRefAssociation();
      UnifiedVirtualFile vfsRoot = (usRef != null ? vfsRoot = usRef.getVfsRoot() : new ResourceLoaderAdapter());

      // Verify wsdl access if this is not a generic Service
      if (wsdlURL != null && serviceClass != Service.class)
      {
         try
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.