javax.xml.soap.SOAPHeader.extractAllHeaderElements()方法的使用及代码示例

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

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

SOAPHeader.extractAllHeaderElements介绍

[英]Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader object and detaches them from this SOAPHeader object.
[中]

代码示例

代码示例来源:origin: org.n52.svalbard/svalbard-xmlbeans

protected List<SoapHeader> getSoapHeader(SOAPHeader soapHeader) {
  Map<String, List<SOAPHeaderElement>> headersByNamespace = new HashMap<>();
  Iterator<?> headerElements = soapHeader.extractAllHeaderElements();
  while (headerElements.hasNext()) {
    SOAPHeaderElement element = (SOAPHeaderElement) headerElements.next();

代码示例来源:origin: org.n52.sensorweb.sos/binding-soap

protected List<SoapHeader> getSoapHeader(SOAPHeader soapHeader) {
  ListMultiMap<String, SOAPHeaderElement> headersByNamespace =
      new LinkedListMultiMap<String, SOAPHeaderElement>();
  Iterator<?> headerElements = soapHeader.extractAllHeaderElements();
  while (headerElements.hasNext()) {
    SOAPHeaderElement element = (SOAPHeaderElement) headerElements.next();

相关文章