void chooseAlternative(Message m) { Collection<Assertion> alternative = null; if (requestor) { if (engine.isEnabled()) { alternative = engine.getAlternativeSelector().selectAlternative(policy, engine, assertor, null, m); } else { // use an empty list to avoid getting NPE alternative = Collections.emptyList(); } } else { alternative = getSupportedAlternatives(m); } if (null == alternative) { throw new PolicyException(new org.apache.cxf.common.i18n.Message("NO_ALTERNATIVE_EXC", BUNDLE)); } setChosenAlternative(alternative); }
void chooseAlternative(Message m) { Collection<Assertion> alternative = null; if (requestor) { if (engine.isEnabled()) { alternative = engine.getAlternativeSelector().selectAlternative(policy, engine, assertor, null, m); } else { // use an empty list to avoid getting NPE alternative = Collections.emptyList(); } } else { alternative = getSupportedAlternatives(m); } if (null == alternative) { throw new PolicyException(new org.apache.cxf.common.i18n.Message("NO_ALTERNATIVE_EXC", BUNDLE)); } setChosenAlternative(alternative); }
void chooseAlternative(PolicyEngine engine, Assertor assertor, List<List<Assertion>> incoming, Message m) { Collection<Assertion> alternative = engine.getAlternativeSelector() .selectAlternative(policy, engine, assertor, incoming, m); if (null == alternative) { PolicyUtils.logPolicy(LOG, Level.FINE, "No alternative supported.", getPolicy()); throw new PolicyException(new org.apache.cxf.common.i18n.Message("NO_ALTERNATIVE_EXC", BUNDLE)); } setChosenAlternative(alternative); }
void chooseAlternative(PolicyEngine engine, Assertor assertor, List<List<Assertion>> incoming, Message m) { Collection<Assertion> alternative = engine.getAlternativeSelector() .selectAlternative(policy, engine, assertor, incoming, m); if (null == alternative) { PolicyUtils.logPolicy(LOG, Level.FINE, "No alternative supported.", getPolicy()); throw new PolicyException(new org.apache.cxf.common.i18n.Message("NO_ALTERNATIVE_EXC", BUNDLE)); } setChosenAlternative(alternative); }