void initialiseInterceptors(PolicyInterceptorProviderRegistry reg, PolicyEngine engine, Set<Interceptor<? extends org.apache.cxf.message.Message>> out, Assertion a, boolean useIn, boolean fault, Message m) { QName qn = a.getName(); List<Interceptor<? extends org.apache.cxf.message.Message>> i = null; if (useIn && !fault) { i = reg.getInInterceptorsForAssertion(qn); } else if (!useIn && !fault) { i = reg.getOutInterceptorsForAssertion(qn); } else if (useIn && fault) { i = reg.getInFaultInterceptorsForAssertion(qn); } else if (!useIn && fault) { i = reg.getOutFaultInterceptorsForAssertion(qn); } out.addAll(i); if (a instanceof PolicyContainingAssertion) { Policy p = ((PolicyContainingAssertion)a).getPolicy(); if (p != null) { for (Assertion a2 : getSupportedAlternatives(engine, p, m)) { initialiseInterceptors(reg, engine, out, a2, useIn, fault, m); } } } }
void initialiseInterceptors(PolicyInterceptorProviderRegistry reg, PolicyEngine engine, Set<Interceptor<? extends org.apache.cxf.message.Message>> out, Assertion a, boolean useIn, boolean fault, Message m) { QName qn = a.getName(); List<Interceptor<? extends org.apache.cxf.message.Message>> i = null; if (useIn && !fault) { i = reg.getInInterceptorsForAssertion(qn); } else if (!useIn && !fault) { i = reg.getOutInterceptorsForAssertion(qn); } else if (useIn && fault) { i = reg.getInFaultInterceptorsForAssertion(qn); } else if (!useIn && fault) { i = reg.getOutFaultInterceptorsForAssertion(qn); } out.addAll(i); if (a instanceof PolicyContainingAssertion) { Policy p = ((PolicyContainingAssertion)a).getPolicy(); if (p != null) { for (Assertion a2 : getSupportedAlternatives(engine, p, m)) { initialiseInterceptors(reg, engine, out, a2, useIn, fault, m); } } } }