/** * Returns an <code>Iterator</code> over all the <code>SOAPHeaderElement</code> objects in this * <code>SOAPHeader</code> object that have the specified actor and that have a MustUnderstand * attribute whose value is equivalent to <code>true</code>. * * @param actor a <code>String</code> giving the URI of the actor for which to search * @return an <code>Iterator</code> object over all the <code>SOAPHeaderElement</code> objects * that contain the specified actor and are marked as MustUnderstand */ public Iterator examineMustUnderstandHeaderElements(String actor) { Collection elements = new ArrayList(); for (Iterator iterator = omTarget.examineMustUnderstandHeaderBlocks(actor); iterator.hasNext();) { elements.add(toSAAJNode((org.w3c.dom.Node)iterator.next())); } return elements.iterator(); }
/** * Returns an <code>Iterator</code> over all the <code>SOAPHeaderElement</code> objects in this * <code>SOAPHeader</code> object that have the specified actor and that have a MustUnderstand * attribute whose value is equivalent to <code>true</code>. * * @param actor a <code>String</code> giving the URI of the actor for which to search * @return an <code>Iterator</code> object over all the <code>SOAPHeaderElement</code> objects * that contain the specified actor and are marked as MustUnderstand */ public Iterator examineMustUnderstandHeaderElements(String actor) { Collection elements = new ArrayList(); for (Iterator iterator = omTarget.examineMustUnderstandHeaderBlocks(actor); iterator.hasNext();) { elements.add(toSAAJNode((org.w3c.dom.Node)iterator.next())); } return elements.iterator(); }
@Override @SuppressWarnings("unchecked") public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String role) { try { return new AxiomSoapHeaderElementIterator(getAxiomHeader().examineMustUnderstandHeaderBlocks(role)); } catch (OMException ex) { throw new AxiomSoapHeaderException(ex); } }
@Override @SuppressWarnings("unchecked") public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String role) { try { return new AxiomSoapHeaderElementIterator(getAxiomHeader().examineMustUnderstandHeaderBlocks(role)); } catch (OMException ex) { throw new AxiomSoapHeaderException(ex); } }
@Override @SuppressWarnings("unchecked") public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String role) { try { return new AxiomSoapHeaderElementIterator(getAxiomHeader().examineMustUnderstandHeaderBlocks(role)); } catch (OMException ex) { throw new AxiomSoapHeaderException(ex); } }
@SuppressWarnings("unchecked") public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String role) { try { return new AxiomSoapHeaderElementIterator(getAxiomHeader().examineMustUnderstandHeaderBlocks(role)); } catch (OMException ex) { throw new AxiomSoapHeaderException(ex); } }