/** * Returns the assertion's parameter collection iterator. * * @return the assertion's parameter collection iterator. */ public final Iterator<PolicyAssertion> getParametersIterator() { return parameters.iterator(); }
/** * Returns the assertion's parameter collection iterator. * * @return the assertion's parameter collection iterator. * * @deprecated Use getNestedParametersIterator() instead */ @Deprecated public final Iterator<PolicyAssertion> getNestedAssertionsIterator() { // TODO: remove return parameters.iterator(); }
/** * Process FastInfoset policy assertions. * * @param key Key to identify the endpoint scope. * @param policyMap the policy map. * @throws PolicyException If retrieving the policy triggered an exception. */ public Collection<WebServiceFeature> getFeatures(final PolicyMapKey key, final PolicyMap policyMap) throws PolicyException { final Collection<WebServiceFeature> features = new LinkedList<WebServiceFeature>(); if ((key != null) && (policyMap != null)) { Policy policy = policyMap.getEndpointEffectivePolicy(key); if (null!=policy && policy.contains(OPTIMIZED_FI_SERIALIZATION_ASSERTION)) { Iterator <AssertionSet> assertions = policy.iterator(); while(assertions.hasNext()){ AssertionSet assertionSet = assertions.next(); Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ PolicyAssertion assertion = policyAssertion.next(); if(OPTIMIZED_FI_SERIALIZATION_ASSERTION.equals(assertion.getName())){ String value = assertion.getAttributeValue(enabled); boolean isFastInfosetEnabled = Boolean.valueOf(value.trim()); features.add(new FastInfosetFeature(isFastInfosetEnabled)); } // end-if non optional fast infoset assertion found } // next assertion } // next alternative } // end-if policy contains fast infoset assertion } return features; }
/** * process Mtom policy assertions and if found and is not optional then mtom is enabled on the * {@link WSDLBoundPortType} * * @param key Key that identifies the endpoint scope * @param policyMap Must be non-null * @throws PolicyException If retrieving the policy triggered an exception */ public Collection<WebServiceFeature> getFeatures(PolicyMapKey key, PolicyMap policyMap) throws PolicyException { final Collection<WebServiceFeature> features = new LinkedList<WebServiceFeature>(); if ((key != null) && (policyMap != null)) { Policy policy = policyMap.getEndpointEffectivePolicy(key); if (null!=policy && policy.contains(OPTIMIZED_MIME_SERIALIZATION_ASSERTION)) { Iterator <AssertionSet> assertions = policy.iterator(); while(assertions.hasNext()){ AssertionSet assertionSet = assertions.next(); Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ PolicyAssertion assertion = policyAssertion.next(); if(OPTIMIZED_MIME_SERIALIZATION_ASSERTION.equals(assertion.getName())){ features.add(new MTOMFeature(true)); } // end-if non optional mtom assertion found } // next assertion } // next alternative } // end-if policy contains mtom assertion } return features; } }
/** * process Mtom policy assertions and if found and is not optional then mtom is enabled on the * {@link WSDLBoundPortType} * * @param key Key that identifies the endpoint scope * @param policyMap Must be non-null * @throws PolicyException If retrieving the policy triggered an exception */ public Collection<WebServiceFeature> getFeatures(PolicyMapKey key, PolicyMap policyMap) throws PolicyException { final Collection<WebServiceFeature> features = new LinkedList<WebServiceFeature>(); if ((key != null) && (policyMap != null)) { Policy policy = policyMap.getEndpointEffectivePolicy(key); if (null!=policy && policy.contains(OPTIMIZED_MIME_SERIALIZATION_ASSERTION)) { Iterator <AssertionSet> assertions = policy.iterator(); while(assertions.hasNext()){ AssertionSet assertionSet = assertions.next(); Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ PolicyAssertion assertion = policyAssertion.next(); if(OPTIMIZED_MIME_SERIALIZATION_ASSERTION.equals(assertion.getName())){ features.add(new MTOMFeature(true)); } // end-if non optional mtom assertion found } // next assertion } // next alternative } // end-if policy contains mtom assertion } return features; } }
/** * Process FastInfoset policy assertions. * * @param key Key to identify the endpoint scope. * @param policyMap the policy map. * @throws PolicyException If retrieving the policy triggered an exception. */ public Collection<WebServiceFeature> getFeatures(final PolicyMapKey key, final PolicyMap policyMap) throws PolicyException { final Collection<WebServiceFeature> features = new LinkedList<WebServiceFeature>(); if ((key != null) && (policyMap != null)) { Policy policy = policyMap.getEndpointEffectivePolicy(key); if (null!=policy && policy.contains(OPTIMIZED_FI_SERIALIZATION_ASSERTION)) { Iterator <AssertionSet> assertions = policy.iterator(); while(assertions.hasNext()){ AssertionSet assertionSet = assertions.next(); Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ PolicyAssertion assertion = policyAssertion.next(); if(OPTIMIZED_FI_SERIALIZATION_ASSERTION.equals(assertion.getName())){ String value = assertion.getAttributeValue(enabled); boolean isFastInfosetEnabled = Boolean.valueOf(value.trim()); features.add(new FastInfosetFeature(isFastInfosetEnabled)); } // end-if non optional fast infoset assertion found } // next assertion } // next alternative } // end-if policy contains fast infoset assertion } return features; }
/** * Process FastInfoset policy assertions. * * @param key Key to identify the endpoint scope. * @param policyMap the policy map. * @throws PolicyException If retrieving the policy triggered an exception. */ public Collection<WebServiceFeature> getFeatures(final PolicyMapKey key, final PolicyMap policyMap) throws PolicyException { final Collection<WebServiceFeature> features = new LinkedList<WebServiceFeature>(); if ((key != null) && (policyMap != null)) { Policy policy = policyMap.getEndpointEffectivePolicy(key); if (null!=policy && policy.contains(OPTIMIZED_FI_SERIALIZATION_ASSERTION)) { Iterator <AssertionSet> assertions = policy.iterator(); while(assertions.hasNext()){ AssertionSet assertionSet = assertions.next(); Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ PolicyAssertion assertion = policyAssertion.next(); if(OPTIMIZED_FI_SERIALIZATION_ASSERTION.equals(assertion.getName())){ String value = assertion.getAttributeValue(enabled); boolean isFastInfosetEnabled = Boolean.valueOf(value.trim()); features.add(new FastInfosetFeature(isFastInfosetEnabled)); } // end-if non optional fast infoset assertion found } // next assertion } // next alternative } // end-if policy contains fast infoset assertion } return features; }
/** * process Mtom policy assertions and if found and is not optional then mtom is enabled on the * {@link WSDLBoundPortType} * * @param key Key that identifies the endpoint scope * @param policyMap Must be non-null * @throws PolicyException If retrieving the policy triggered an exception */ public Collection<WebServiceFeature> getFeatures(PolicyMapKey key, PolicyMap policyMap) throws PolicyException { final Collection<WebServiceFeature> features = new LinkedList<WebServiceFeature>(); if ((key != null) && (policyMap != null)) { Policy policy = policyMap.getEndpointEffectivePolicy(key); if (null!=policy && policy.contains(OPTIMIZED_MIME_SERIALIZATION_ASSERTION)) { Iterator <AssertionSet> assertions = policy.iterator(); while(assertions.hasNext()){ AssertionSet assertionSet = assertions.next(); Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ PolicyAssertion assertion = policyAssertion.next(); if(OPTIMIZED_MIME_SERIALIZATION_ASSERTION.equals(assertion.getName())){ features.add(new MTOMFeature(true)); } // end-if non optional mtom assertion found } // next assertion } // next alternative } // end-if policy contains mtom assertion } return features; } }
/** * Process SelectOptimalEncoding policy assertions. * * @param key Key that identifies the endpoint scope. * @param policyMap The policy map. * @throws PolicyException If retrieving the policy triggered an exception. */ public Collection<WebServiceFeature> getFeatures(PolicyMapKey key, PolicyMap policyMap) throws PolicyException { final Collection<WebServiceFeature> features = new LinkedList<WebServiceFeature>(); if ((key != null) && (policyMap != null)) { Policy policy = policyMap.getEndpointEffectivePolicy(key); if (null!=policy && policy.contains(SELECT_OPTIMAL_ENCODING_ASSERTION)) { Iterator <AssertionSet> assertions = policy.iterator(); while(assertions.hasNext()){ AssertionSet assertionSet = assertions.next(); Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ PolicyAssertion assertion = policyAssertion.next(); if(SELECT_OPTIMAL_ENCODING_ASSERTION.equals(assertion.getName())){ String value = assertion.getAttributeValue(enabled); boolean isSelectOptimalEncodingEnabled = value == null || Boolean.valueOf(value.trim()); features.add(new SelectOptimalEncodingFeature(isSelectOptimalEncodingEnabled)); } } } } } return features; } }
/** * Process SelectOptimalEncoding policy assertions. * * @param key Key that identifies the endpoint scope. * @param policyMap The policy map. * @throws PolicyException If retrieving the policy triggered an exception. */ public Collection<WebServiceFeature> getFeatures(PolicyMapKey key, PolicyMap policyMap) throws PolicyException { final Collection<WebServiceFeature> features = new LinkedList<WebServiceFeature>(); if ((key != null) && (policyMap != null)) { Policy policy = policyMap.getEndpointEffectivePolicy(key); if (null!=policy && policy.contains(SELECT_OPTIMAL_ENCODING_ASSERTION)) { Iterator <AssertionSet> assertions = policy.iterator(); while(assertions.hasNext()){ AssertionSet assertionSet = assertions.next(); Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ PolicyAssertion assertion = policyAssertion.next(); if(SELECT_OPTIMAL_ENCODING_ASSERTION.equals(assertion.getName())){ String value = assertion.getAttributeValue(enabled); boolean isSelectOptimalEncodingEnabled = value == null || Boolean.valueOf(value.trim()); features.add(new SelectOptimalEncodingFeature(isSelectOptimalEncodingEnabled)); } } } } } return features; } }
/** * Process SelectOptimalEncoding policy assertions. * * @param key Key that identifies the endpoint scope. * @param policyMap The policy map. * @throws PolicyException If retrieving the policy triggered an exception. */ public Collection<WebServiceFeature> getFeatures(PolicyMapKey key, PolicyMap policyMap) throws PolicyException { final Collection<WebServiceFeature> features = new LinkedList<WebServiceFeature>(); if ((key != null) && (policyMap != null)) { Policy policy = policyMap.getEndpointEffectivePolicy(key); if (null!=policy && policy.contains(SELECT_OPTIMAL_ENCODING_ASSERTION)) { Iterator <AssertionSet> assertions = policy.iterator(); while(assertions.hasNext()){ AssertionSet assertionSet = assertions.next(); Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ PolicyAssertion assertion = policyAssertion.next(); if(SELECT_OPTIMAL_ENCODING_ASSERTION.equals(assertion.getName())){ String value = assertion.getAttributeValue(enabled); boolean isSelectOptimalEncodingEnabled = value == null || Boolean.valueOf(value.trim()); features.add(new SelectOptimalEncodingFeature(isSelectOptimalEncodingEnabled)); } } } } } return features; } }
while(assertions.hasNext()){ final AssertionSet assertionSet = assertions.next(); final Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ final PolicyAssertion assertion = policyAssertion.next();
while(assertions.hasNext()){ final AssertionSet assertionSet = assertions.next(); final Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ final PolicyAssertion assertion = policyAssertion.next();
while(assertions.hasNext()){ final AssertionSet assertionSet = assertions.next(); final Iterator<PolicyAssertion> policyAssertion = assertionSet.iterator(); while(policyAssertion.hasNext()){ final PolicyAssertion assertion = policyAssertion.next();