Search in sources :

Example 6 with UnifiedHandlerMetaData

use of org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData in project wildfly by wildfly.

the class WSRefUtils method getUnifiedHandlerChainsMetaData.

private static UnifiedHandlerChainsMetaData getUnifiedHandlerChainsMetaData(final ServiceReferenceHandlerChainsMetaData handlerChainsMD) {
    List<UnifiedHandlerChainMetaData> uhcmds = new LinkedList<UnifiedHandlerChainMetaData>();
    for (final ServiceReferenceHandlerChainMetaData handlerChainMD : handlerChainsMD.getHandlers()) {
        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);
}
Also used : ServiceReferenceHandlerMetaData(org.jboss.metadata.javaee.spec.ServiceReferenceHandlerMetaData) UnifiedHandlerChainMetaData(org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainMetaData) ServiceReferenceHandlerChainMetaData(org.jboss.metadata.javaee.spec.ServiceReferenceHandlerChainMetaData) UnifiedHandlerMetaData(org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData) UnifiedHandlerChainsMetaData(org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainsMetaData) LinkedList(java.util.LinkedList)

Aggregations

UnifiedHandlerMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData)6 UnifiedHandlerChainMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainMetaData)4 UnifiedHandlerChainsMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainsMetaData)3 LinkedList (java.util.LinkedList)2 ServiceReferenceHandlerMetaData (org.jboss.metadata.javaee.spec.ServiceReferenceHandlerMetaData)2 ArrayList (java.util.ArrayList)1 Comparator (java.util.Comparator)1 HashSet (java.util.HashSet)1 QName (javax.xml.namespace.QName)1 JBossPortComponentRef (org.jboss.metadata.javaee.jboss.JBossPortComponentRef)1 JBossServiceReferenceMetaData (org.jboss.metadata.javaee.jboss.JBossServiceReferenceMetaData)1 ParamValueMetaData (org.jboss.metadata.javaee.spec.ParamValueMetaData)1 PortComponentRef (org.jboss.metadata.javaee.spec.PortComponentRef)1 ServiceReferenceHandlerChainMetaData (org.jboss.metadata.javaee.spec.ServiceReferenceHandlerChainMetaData)1 ServiceReferenceHandlerChainsMetaData (org.jboss.metadata.javaee.spec.ServiceReferenceHandlerChainsMetaData)1 UnifiedInitParamMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedInitParamMetaData)1 UnifiedPortComponentRefMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedPortComponentRefMetaData)1 UnifiedServiceRefMetaDataBuilder (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaDataBuilder)1