Search in sources :

Example 1 with ServiceReferenceHandlerChainMetaData

use of org.jboss.metadata.javaee.spec.ServiceReferenceHandlerChainMetaData 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

LinkedList (java.util.LinkedList)1 ServiceReferenceHandlerChainMetaData (org.jboss.metadata.javaee.spec.ServiceReferenceHandlerChainMetaData)1 ServiceReferenceHandlerMetaData (org.jboss.metadata.javaee.spec.ServiceReferenceHandlerMetaData)1 UnifiedHandlerChainMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainMetaData)1 UnifiedHandlerChainsMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerChainsMetaData)1 UnifiedHandlerMetaData (org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedHandlerMetaData)1