/** * Return the vocabulary of a policy component, i.e. the set of QNames of * the assertions used in the componente, duplicates removed. * @param pc the policy component * @param includeOptional flag indicating if optional assertions should be included * @return the vocabulary */ Set<QName> getVocabulary(PolicyComponent pc, boolean includeOptional) { Collection<Assertion> assertions = getAssertions(pc, includeOptional); Set<QName> vocabulary = new HashSet<>(); for (Assertion a : assertions) { vocabulary.add(a.getName()); } return vocabulary; }
/** * Return the vocabulary of a policy component, i.e. the set of QNames of * the assertions used in the componente, duplicates removed. * @param pc the policy component * @param includeOptional flag indicating if optional assertions should be included * @return the vocabulary */ Set<QName> getVocabulary(PolicyComponent pc, boolean includeOptional) { Collection<Assertion> assertions = getAssertions(pc, includeOptional); Set<QName> vocabulary = new HashSet<>(); for (Assertion a : assertions) { vocabulary.add(a.getName()); } return vocabulary; }
public void initialise(EndpointInfo ei, BindingOperationInfo boi, PolicyEngine engine, boolean requestor, boolean request, Message m) { Assertor assertor = initialisePolicy(ei, boi, engine, requestor, request, null, m); if (requestor || !request) { chooseAlternative(engine, assertor, m); initialiseInterceptors(engine, requestor, m); } else { //incoming server should not choose an alternative, need to include all the policies Collection<Assertion> alternative = ((PolicyEngineImpl)engine).getAssertions(this.policy, true); this.setChosenAlternative(alternative); } }
public void initialise(EndpointInfo ei, BindingOperationInfo boi, PolicyEngine engine, boolean requestor, boolean request, Message m) { Assertor assertor = initialisePolicy(ei, boi, engine, requestor, request, null, m); if (requestor || !request) { chooseAlternative(engine, assertor, m); initialiseInterceptors(engine, requestor, m); } else { //incoming server should not choose an alternative, need to include all the policies Collection<Assertion> alternative = ((PolicyEngineImpl)engine).getAssertions(this.policy, true); this.setChosenAlternative(alternative); } }
if (!this.requestor) { p = engine.getEffectiveServerRequestPolicy(ei, boi, m); Collection<Assertion> c = engine.getAssertions(p, false); if (c != null) { addAll(v, c); Collection<Assertion> c = engine.getAssertions(p, false); if (c != null) { addAll(v, c); for (BindingFaultInfo bfi : boi.getFaults()) { p = engine.getEffectiveClientFaultPolicy(ei, boi, bfi, m); c = engine.getAssertions(p, false); if (c != null) { addAll(fv, c);
if (!this.requestor) { p = engine.getEffectiveServerRequestPolicy(ei, boi, m); Collection<Assertion> c = engine.getAssertions(p, false); if (c != null) { addAll(v, c); Collection<Assertion> c = engine.getAssertions(p, false); if (c != null) { addAll(v, c); for (BindingFaultInfo bfi : boi.getFaults()) { p = engine.getEffectiveClientFaultPolicy(ei, boi, bfi, m); c = engine.getAssertions(p, false); if (c != null) { addAll(fv, c);
continue; Collection<Assertion> c = engine.getAssertions(p, true); if (c != null) { for (Assertion a : c) {
continue; Collection<Assertion> c = engine.getAssertions(p, true); if (c != null) { for (Assertion a : c) {