Java Code Examples for com.sun.xml.internal.ws.policy.PolicyAssertion#getParametersIterator()
The following examples show how to use
com.sun.xml.internal.ws.policy.PolicyAssertion#getParametersIterator() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ManagedServiceAssertion.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. * * @return A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. May be empty. */ public Collection<ImplementationRecord> getCommunicationServerImplementations() { final Collection<ImplementationRecord> result = new LinkedList<ImplementationRecord>(); final Iterator<PolicyAssertion> parameters = getParametersIterator(); while (parameters.hasNext()) { final PolicyAssertion parameter = parameters.next(); if (COMMUNICATION_SERVER_IMPLEMENTATIONS_PARAMETER_QNAME.equals(parameter.getName())) { final Iterator<PolicyAssertion> implementations = parameter.getParametersIterator(); if (!implementations.hasNext()) { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1005_EXPECTED_COMMUNICATION_CHILD())); } while (implementations.hasNext()) { final PolicyAssertion implementation = implementations.next(); if (COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME.equals(implementation.getName())) { result.add(getImplementation(implementation)); } else { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1004_EXPECTED_XML_TAG( COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME, implementation.getName()))); } } } } return result; }
Example 2
Source File: ManagedServiceAssertion.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. * * @return A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. May be empty. */ public Collection<ImplementationRecord> getCommunicationServerImplementations() { final Collection<ImplementationRecord> result = new LinkedList<ImplementationRecord>(); final Iterator<PolicyAssertion> parameters = getParametersIterator(); while (parameters.hasNext()) { final PolicyAssertion parameter = parameters.next(); if (COMMUNICATION_SERVER_IMPLEMENTATIONS_PARAMETER_QNAME.equals(parameter.getName())) { final Iterator<PolicyAssertion> implementations = parameter.getParametersIterator(); if (!implementations.hasNext()) { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1005_EXPECTED_COMMUNICATION_CHILD())); } while (implementations.hasNext()) { final PolicyAssertion implementation = implementations.next(); if (COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME.equals(implementation.getName())) { result.add(getImplementation(implementation)); } else { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1004_EXPECTED_XML_TAG( COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME, implementation.getName()))); } } } } return result; }
Example 3
Source File: ManagedServiceAssertion.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. * * @return A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. May be empty. */ public Collection<ImplementationRecord> getCommunicationServerImplementations() { final Collection<ImplementationRecord> result = new LinkedList<ImplementationRecord>(); final Iterator<PolicyAssertion> parameters = getParametersIterator(); while (parameters.hasNext()) { final PolicyAssertion parameter = parameters.next(); if (COMMUNICATION_SERVER_IMPLEMENTATIONS_PARAMETER_QNAME.equals(parameter.getName())) { final Iterator<PolicyAssertion> implementations = parameter.getParametersIterator(); if (!implementations.hasNext()) { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1005_EXPECTED_COMMUNICATION_CHILD())); } while (implementations.hasNext()) { final PolicyAssertion implementation = implementations.next(); if (COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME.equals(implementation.getName())) { result.add(getImplementation(implementation)); } else { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1004_EXPECTED_XML_TAG( COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME, implementation.getName()))); } } } } return result; }
Example 4
Source File: ManagedServiceAssertion.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. * * @return A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. May be empty. */ public Collection<ImplementationRecord> getCommunicationServerImplementations() { final Collection<ImplementationRecord> result = new LinkedList<ImplementationRecord>(); final Iterator<PolicyAssertion> parameters = getParametersIterator(); while (parameters.hasNext()) { final PolicyAssertion parameter = parameters.next(); if (COMMUNICATION_SERVER_IMPLEMENTATIONS_PARAMETER_QNAME.equals(parameter.getName())) { final Iterator<PolicyAssertion> implementations = parameter.getParametersIterator(); if (!implementations.hasNext()) { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1005_EXPECTED_COMMUNICATION_CHILD())); } while (implementations.hasNext()) { final PolicyAssertion implementation = implementations.next(); if (COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME.equals(implementation.getName())) { result.add(getImplementation(implementation)); } else { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1004_EXPECTED_XML_TAG( COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME, implementation.getName()))); } } } } return result; }
Example 5
Source File: ManagedServiceAssertion.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. * * @return A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. May be empty. */ public Collection<ImplementationRecord> getCommunicationServerImplementations() { final Collection<ImplementationRecord> result = new LinkedList<ImplementationRecord>(); final Iterator<PolicyAssertion> parameters = getParametersIterator(); while (parameters.hasNext()) { final PolicyAssertion parameter = parameters.next(); if (COMMUNICATION_SERVER_IMPLEMENTATIONS_PARAMETER_QNAME.equals(parameter.getName())) { final Iterator<PolicyAssertion> implementations = parameter.getParametersIterator(); if (!implementations.hasNext()) { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1005_EXPECTED_COMMUNICATION_CHILD())); } while (implementations.hasNext()) { final PolicyAssertion implementation = implementations.next(); if (COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME.equals(implementation.getName())) { result.add(getImplementation(implementation)); } else { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1004_EXPECTED_XML_TAG( COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME, implementation.getName()))); } } } } return result; }
Example 6
Source File: ManagedServiceAssertion.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. * * @return A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. May be empty. */ public Collection<ImplementationRecord> getCommunicationServerImplementations() { final Collection<ImplementationRecord> result = new LinkedList<ImplementationRecord>(); final Iterator<PolicyAssertion> parameters = getParametersIterator(); while (parameters.hasNext()) { final PolicyAssertion parameter = parameters.next(); if (COMMUNICATION_SERVER_IMPLEMENTATIONS_PARAMETER_QNAME.equals(parameter.getName())) { final Iterator<PolicyAssertion> implementations = parameter.getParametersIterator(); if (!implementations.hasNext()) { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1005_EXPECTED_COMMUNICATION_CHILD())); } while (implementations.hasNext()) { final PolicyAssertion implementation = implementations.next(); if (COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME.equals(implementation.getName())) { result.add(getImplementation(implementation)); } else { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1004_EXPECTED_XML_TAG( COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME, implementation.getName()))); } } } } return result; }
Example 7
Source File: ManagedServiceAssertion.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. * * @return A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. May be empty. */ public Collection<ImplementationRecord> getCommunicationServerImplementations() { final Collection<ImplementationRecord> result = new LinkedList<ImplementationRecord>(); final Iterator<PolicyAssertion> parameters = getParametersIterator(); while (parameters.hasNext()) { final PolicyAssertion parameter = parameters.next(); if (COMMUNICATION_SERVER_IMPLEMENTATIONS_PARAMETER_QNAME.equals(parameter.getName())) { final Iterator<PolicyAssertion> implementations = parameter.getParametersIterator(); if (!implementations.hasNext()) { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1005_EXPECTED_COMMUNICATION_CHILD())); } while (implementations.hasNext()) { final PolicyAssertion implementation = implementations.next(); if (COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME.equals(implementation.getName())) { result.add(getImplementation(implementation)); } else { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1004_EXPECTED_XML_TAG( COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME, implementation.getName()))); } } } } return result; }
Example 8
Source File: ManagedServiceAssertion.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. * * @return A list of CommunicationServerImplementation elements that were set as * parameters of this assertion. May be empty. */ public Collection<ImplementationRecord> getCommunicationServerImplementations() { final Collection<ImplementationRecord> result = new LinkedList<ImplementationRecord>(); final Iterator<PolicyAssertion> parameters = getParametersIterator(); while (parameters.hasNext()) { final PolicyAssertion parameter = parameters.next(); if (COMMUNICATION_SERVER_IMPLEMENTATIONS_PARAMETER_QNAME.equals(parameter.getName())) { final Iterator<PolicyAssertion> implementations = parameter.getParametersIterator(); if (!implementations.hasNext()) { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1005_EXPECTED_COMMUNICATION_CHILD())); } while (implementations.hasNext()) { final PolicyAssertion implementation = implementations.next(); if (COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME.equals(implementation.getName())) { result.add(getImplementation(implementation)); } else { throw LOGGER.logSevereException(new WebServiceException( ManagementMessages.WSM_1004_EXPECTED_XML_TAG( COMMUNICATION_SERVER_IMPLEMENTATION_PARAMETER_QNAME, implementation.getName()))); } } } } return result; }