Package org.jboss.wsf.spi.metadata.j2ee.serviceref

Examples of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainMetaData


/*     */   {
/* 134 */     this.log.trace("WSHandlerChainsConfig newChild: " + localName);
/*     */
/* 136 */     if ("handler-chain".equals(localName))
/*     */     {
/* 138 */       UnifiedHandlerChainMetaData handlerChain = new UnifiedHandlerChainMetaData(null);
/* 139 */       handlerChains.getHandlerChains().add(handlerChain);
/* 140 */       return handlerChain;
/*     */     }
/* 142 */     return null;
/*     */   }
View Full Code Here


/*     */   {
/* 114 */     this.log.trace("CommonConfig newChild: " + localName);
/*     */
/* 116 */     if ("pre-handler-chain".equals(localName))
/*     */     {
/* 118 */       UnifiedHandlerChainMetaData preHandlerChain = new UnifiedHandlerChainMetaData(null);
/* 119 */       commonConfig.setPreHandlerChain(preHandlerChain);
/* 120 */       return preHandlerChain;
/*     */     }
/* 122 */     if ("post-handler-chain".equals(localName))
/*     */     {
/* 124 */       UnifiedHandlerChainMetaData postHandlerChain = new UnifiedHandlerChainMetaData(null);
/* 125 */       commonConfig.setPostHandlerChain(postHandlerChain);
/* 126 */       return postHandlerChain;
/*     */     }
/* 128 */     return null;
/*     */   }
View Full Code Here

/*    */   }
/*    */
/*    */   public List<HandlerMetaData> getHandlers(EndpointMetaData epMetaData, UnifiedHandlerMetaData.HandlerType type)
/*    */   {
/* 72 */     List handlers = new ArrayList();
/*    */     UnifiedHandlerChainMetaData handlerChain;
/* 75 */     if (type == UnifiedHandlerMetaData.HandlerType.PRE) {
/* 76 */       handlerChain = getPreHandlerChain();
/*    */     }
/*    */     else
/*    */     {
/*    */       UnifiedHandlerChainMetaData handlerChain;
/* 77 */       if (type == UnifiedHandlerMetaData.HandlerType.POST)
/* 78 */         handlerChain = getPostHandlerChain();
/*    */       else
/* 80 */         throw new IllegalArgumentException("Invalid handler type: " + type);
/*    */     }
/*    */     UnifiedHandlerChainMetaData handlerChain;
/* 82 */     if (handlerChain != null)
/*    */     {
/* 84 */       for (UnifiedHandlerMetaData uhmd : handlerChain.getHandlers())
/*    */       {
/* 86 */         HandlerMetaDataJAXRPC hmd = HandlerMetaDataJAXRPC.newInstance(uhmd, type);
/* 87 */         handlers.add(hmd);
/*    */       }
/*    */     }
View Full Code Here

/*     */     {
/* 138 */       UnifiedHandlerChainsMetaData uHandlerChains = new UnifiedHandlerChainsMetaData();
/* 139 */       List srHandlerChainList = srHandlerChains.getHandlers();
/* 140 */       for (ServiceReferenceHandlerChainMetaData srHandlerChain : srHandlerChainList)
/*     */       {
/* 142 */         UnifiedHandlerChainMetaData uHandlerChain = new UnifiedHandlerChainMetaData();
/* 143 */         uHandlerChain.setServiceNamePattern(srHandlerChain.getServiceNamePattern());
/* 144 */         uHandlerChain.setPortNamePattern(srHandlerChain.getPortNamePattern());
/* 145 */         uHandlerChain.setProtocolBindings(srHandlerChain.getProtocolBindings());
/* 146 */         List srHandlerChainHandlers = srHandlerChain.getHandler();
/* 147 */         Iterator it = srHandlerChainHandlers.iterator();
/* 148 */         while (it.hasNext())
/*     */         {
/* 150 */           ServiceReferenceHandlerMetaData srHandlerMetaData = (ServiceReferenceHandlerMetaData)it.next();
/* 151 */           UnifiedHandlerMetaData uHandlerMetaData = getUnifiedHandlerMetaData(srHandlerMetaData);
/* 152 */           uHandlerChain.addHandler(uHandlerMetaData);
/*     */         }
/* 154 */         uHandlerChains.addHandlerChain(uHandlerChain);
/*     */       }
/* 156 */       result.setHandlerChains(uHandlerChains);
/*     */     }
View Full Code Here

   {
      log.trace("WSHandlerChainsConfig newChild: " + localName);

      if ("handler-chain".equals(localName))
      {
         UnifiedHandlerChainMetaData handlerChain = new UnifiedHandlerChainMetaData(null);
         handlerChains.getHandlerChains().add(handlerChain);
         return handlerChain;
      }
      return null;
   }
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainMetaData

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.