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

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


            List<UnifiedHandlerMetaData> uhmds = new LinkedList<UnifiedHandlerMetaData>();
            for (final ServiceReferenceHandlerMetaData handlerMD : handlerChainMD.getHandler()) {
                final UnifiedHandlerMetaData handlerUMDM = getUnifiedHandlerMetaData(handlerMD);
                uhmds.add(handlerUMDM);
            }
            uhcmds.add(new UnifiedHandlerChainMetaData(handlerChainMD.getServiceNamePattern(), handlerChainMD.getPortNamePattern(),
                    handlerChainMD.getProtocolBindings(), uhmds, false, null));
        }

        return new UnifiedHandlerChainsMetaData(uhcmds);
    }
View Full Code Here


        List<UnifiedHandlerMetaData> handlers = new ArrayList<UnifiedHandlerMetaData>();
        for (String handlerClass : handlerClasses) {
            handlers.add(new UnifiedHandlerMetaData(handlerClass, null, null, null, null, null));
        }
        return new UnifiedHandlerChainsMetaData(new UnifiedHandlerChainMetaData(null, null, null, handlers, false, null));
    }
View Full Code Here

            }
        };
        synchronized (handlers) {
            Collections.sort(handlers, c);
        }
        handlerChain = new UnifiedHandlerChainMetaData(null, null, protocolBindings, handlers, false, handlerChainId);
    }
View Full Code Here

   private Object newChild(UnifiedHandlerChainsMetaData ref, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs)
   {
      Object child = null;
      if (localName.equals("handler-chain"))
      {
         child = new UnifiedHandlerChainMetaData();
         ref.addHandlerChain((UnifiedHandlerChainMetaData)child);
      }
      return child;
   }
View Full Code Here

   private Object newChild(UnifiedHandlerChainsMetaData ref, UnmarshallingContext navigator, String namespaceURI, String localName, Attributes attrs)
   {
      Object child = null;
      if (localName.equals("handler-chain"))
      {
         child = new UnifiedHandlerChainMetaData();
         ref.addHandlerChain((UnifiedHandlerChainMetaData)child);
      }
      return child;
   }
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

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

      if ("pre-handler-chain".equals(localName))
      {
         UnifiedHandlerChainMetaData preHandlerChain = new UnifiedHandlerChainMetaData(null);
         commonConfig.setPreHandlerChain(preHandlerChain);
         return preHandlerChain;
      }
      if ("post-handler-chain".equals(localName))
      {
         UnifiedHandlerChainMetaData postHandlerChain = new UnifiedHandlerChainMetaData(null);
         commonConfig.setPostHandlerChain(postHandlerChain);
         return postHandlerChain;
      }
      return null;
   }
View Full Code Here

   {
      HandlerMetaDataJAXWS hmd = new HandlerMetaDataJAXWS(type);
      hmd.setHandlerName(uhmd.getHandlerName());
      hmd.setHandlerClassName(uhmd.getHandlerClass());
      hmd.setInitParams(uhmd.getInitParams());
      UnifiedHandlerChainMetaData handlerChain = uhmd.getHandlerChain();
      if (handlerChain != null)
      {
         hmd.setProtocolBindings(handlerChain.getProtocolBindings());
         hmd.setServiceNamePattern(handlerChain.getServiceNamePattern());
         hmd.setPortNamePattern(handlerChain.getPortNamePattern());
      }
      return hmd;
   }
View Full Code Here

   @Override
   public List<HandlerMetaData> getHandlers(EndpointMetaData epMetaData, HandlerType type)
   {
      List<HandlerMetaData> handlers = new ArrayList<HandlerMetaData>();
     
      UnifiedHandlerChainMetaData handlerChain;
      if (type == HandlerType.PRE)
         handlerChain = getPreHandlerChain();
      else if (type == HandlerType.POST)
         handlerChain = getPostHandlerChain();
      else
         throw new IllegalArgumentException("Invalid handler type: " + type);
     
      if (handlerChain != null)
      {
         for (UnifiedHandlerMetaData uhmd : handlerChain.getHandlers())
         {
            HandlerMetaDataJAXRPC hmd = HandlerMetaDataJAXRPC.newInstance(uhmd, type);
            handlers.add(hmd);
         }
      }
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.