org.apache.axiom.soap.SOAPHeader.examineMustUnderstandHeaderBlocks()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(93)

本文整理了Java中org.apache.axiom.soap.SOAPHeader.examineMustUnderstandHeaderBlocks()方法的一些代码示例,展示了SOAPHeader.examineMustUnderstandHeaderBlocks()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SOAPHeader.examineMustUnderstandHeaderBlocks()方法的具体详情如下:
包路径:org.apache.axiom.soap.SOAPHeader
类名称:SOAPHeader
方法名:examineMustUnderstandHeaderBlocks

SOAPHeader.examineMustUnderstandHeaderBlocks介绍

[英]Returns an iterator over all the SOAPHeaderBlock objects in this SOAPHeaderobject that have the specified role and that have a MustUnderstand attribute whose value is equivalent to true.
[中]返回此SOAPHeaderobject中所有SOAPHeaderBlock对象的迭代器,这些对象具有指定的角色,并且具有值等于true的MustUnderstand属性。

代码示例

代码示例来源:origin: org.apache.axis2/axis2-saaj

/**
 * 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();
}

代码示例来源:origin: apache/axis2-java

/**
 * 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();
}

代码示例来源:origin: spring-projects/spring-ws

@Override
@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String role) {
  try {
    return new AxiomSoapHeaderElementIterator(getAxiomHeader().examineMustUnderstandHeaderBlocks(role));
  }
  catch (OMException ex) {
    throw new AxiomSoapHeaderException(ex);
  }
}

代码示例来源:origin: apache/servicemix-bundles

@Override
@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String role) {
  try {
    return new AxiomSoapHeaderElementIterator(getAxiomHeader().examineMustUnderstandHeaderBlocks(role));
  }
  catch (OMException ex) {
    throw new AxiomSoapHeaderException(ex);
  }
}

代码示例来源:origin: org.springframework.ws/spring-ws-core

@Override
@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String role) {
  try {
    return new AxiomSoapHeaderElementIterator(getAxiomHeader().examineMustUnderstandHeaderBlocks(role));
  }
  catch (OMException ex) {
    throw new AxiomSoapHeaderException(ex);
  }
}

代码示例来源:origin: org.springframework.ws/org.springframework.ws

@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String role) {
  try {
    return new AxiomSoapHeaderElementIterator(getAxiomHeader().examineMustUnderstandHeaderBlocks(role));
  }
  catch (OMException ex) {
    throw new AxiomSoapHeaderException(ex);
  }
}

相关文章