Package org.jboss.wsf.spi.deployment

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


/*     */
/*     */   public static WebservicesMetaData loadFromVFSRoot(UnifiedVirtualFile root)
/*     */   {
/*  72 */     WebservicesMetaData webservices = null;
/*     */
/*  74 */     UnifiedVirtualFile wsdd = null;
/*     */     try
/*     */     {
/*  77 */       wsdd = root.findChild("META-INF/webservices.xml");
/*     */     }
/*     */     catch (IOException e)
/*     */     {
/*     */     }
/*     */
/*  85 */     if (null == wsdd)
/*     */     {
/*     */       try
/*     */       {
/*  89 */         wsdd = root.findChild("WEB-INF/webservices.xml");
/*     */       }
/*     */       catch (IOException e)
/*     */       {
/*     */       }
/*     */
/*     */     }
/*     */
/*  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


/*    */   {
/*    */     try
/*    */     {
/* 61 */       Context envCtx = container.getEnc();
/* 62 */       ClassLoader loader = container.getClassloader();
/* 63 */       UnifiedVirtualFile vfsRoot = new VirtualFileAdaptor(container.getRootFile());
/* 64 */       new ServiceReferenceHandler().bindServiceRef(envCtx, this.name, vfsRoot, loader, this.sref);
/*    */     }
/*    */     catch (Exception e)
/*    */     {
/* 68 */       throw new WebServiceException("Unable to bind ServiceRef [enc=" + this.name + "]", e);
View Full Code Here

/* 547 */       if (serviceMetaData.getSecurityConfiguration() == null)
/*     */       {
/*     */         try
/*     */         {
/* 551 */           WSSecurityConfigFactory wsseConfFactory = WSSecurityConfigFactory.newInstance();
/* 552 */           UnifiedVirtualFile vfsRoot = serviceMetaData.getUnifiedMetaData().getRootFile();
/* 553 */           WSSecurityConfiguration config = wsseConfFactory.createConfiguration(vfsRoot, securityConfig);
/* 554 */           serviceMetaData.setSecurityConfiguration(config);
/*     */         }
/*     */         catch (IOException ex)
/*     */         {
View Full Code Here

   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

         if (serviceMetaData.getSecurityConfiguration() == null)
         {
            try
            {
               WSSecurityConfigFactory wsseConfFactory = WSSecurityConfigFactory.newInstance();
               UnifiedVirtualFile vfsRoot = serviceMetaData.getUnifiedMetaData().getRootFile();
               WSSecurityConfiguration config = wsseConfFactory.createConfiguration(vfsRoot, securityConfig);
               serviceMetaData.setSecurityConfiguration(config);
            }
            catch (IOException ex)
            {
View Full Code Here

/*      */       }
/*      */
/*      */     }
/*      */
/* 1276 */     ClassLoader loader = this.unit.getClassLoader();
/* 1277 */     UnifiedVirtualFile vfsRoot = new VirtualFileAdaptor(this.unit.getRoot());
/* 1278 */     Iterator serviceReferences = beanMetaData.getServiceReferences();
/* 1279 */     if (serviceReferences != null)
/*      */     {
/* 1281 */       while (serviceReferences.hasNext())
/*      */       {
View Full Code Here

/*     */             {
/* 354 */               String name = sref.getServiceRefName();
/* 355 */               String encName = "env/" + name;
/* 356 */               Context encCtx = getEnc();
/*     */
/* 358 */               UnifiedVirtualFile vfsRoot = new VirtualFileAdaptor(getRootFile());
/* 359 */               new ServiceReferenceHandler().bindServiceRef(encCtx, encName, vfsRoot, getClassloader(), sref);
/*     */             }
/*     */             catch (Exception e)
/*     */             {
/* 364 */               log.error("Failed to bind service-ref", e);
View Full Code Here

/*     */   private ExecutorService executor;
/* 105 */   private List<QName> annotatedPorts = new ArrayList();
/*     */
/*     */   public ServiceDelegateImpl(URL wsdlURL, QName serviceName, Class serviceClass)
/*     */   {
/*     */     UnifiedVirtualFile vfsRoot;
/* 112 */     UnifiedVirtualFile vfsRoot = this.usRef != null ? (vfsRoot = this.usRef.getVfsRoot()) : new ResourceLoaderAdapter();
/*     */
/* 115 */     if ((wsdlURL != null) && (serviceClass != Service.class))
/*     */     {
/*     */       try
/*     */       {
View Full Code Here

/* 112 */     EndpointMetaData epMetaData = ((CommonMessageContext)msgContext).getEndpointMetaData();
/* 113 */     ServiceMetaData serviceMetaData = epMetaData.getServiceMetaData();
/*     */
/* 115 */     if (serviceMetaData.getSecurityConfiguration() == null)
/*     */     {
/* 117 */       UnifiedVirtualFile vfsRoot = serviceMetaData.getUnifiedMetaData().getRootFile();
/* 118 */       WSSecurityConfiguration config = null;
/*     */       try
/*     */       {
/* 121 */         WSSecurityConfigFactory wsseConfFactory = WSSecurityConfigFactory.newInstance();
/* 122 */         config = wsseConfFactory.createConfiguration(vfsRoot, getConfigResourceName());
View Full Code Here

/*     */
/* 296 */       if (wsdlURL == null)
/*     */       {
/*     */         try
/*     */         {
/* 300 */           UnifiedVirtualFile vfsRoot = getUnifiedMetaData().getRootFile();
/* 301 */           wsdlURL = vfsRoot.findChild(this.wsdlFile).toURL();
/*     */         }
/*     */         catch (IOException ex)
/*     */         {
/* 305 */           throw new IllegalStateException("Cannot find wsdl: " + this.wsdlFile);
/*     */         }
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.deployment.UnifiedVirtualFile

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.