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

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

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

SOAPHeader.examineMustUnderstandHeaderElements介绍

[英]Returns an Iterator over all the SOAPHeaderElement objects in this SOAPHeader object that have the specified actor and that have a MustUnderstand attribute whose value is equivalent to true.

In SOAP 1.2 the env:actor attribute is replaced by the env:role attribute, but with essentially the same semantics.
[中]在这个SOAPHeader对象中的所有SOAPHeaderElement对象上返回一个Iterator,这些对象具有指定的参与者,并且具有一个MustUnderstand属性,其值等于true
在SOAP1.2中,env:actor属性被env:role属性替换,但语义基本相同。

代码示例

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

@Override
@SuppressWarnings("unchecked")
public Iterator<SOAPHeaderElement> examineMustUnderstandHeaderElements(SOAPHeader header, String actorOrRole) {
  return header.examineMustUnderstandHeaderElements(actorOrRole);
}

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

@Override
@SuppressWarnings("unchecked")
public Iterator<SOAPHeaderElement> examineMustUnderstandHeaderElements(SOAPHeader header, String actorOrRole) {
  return header.examineMustUnderstandHeaderElements(actorOrRole);
}

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

@Override
@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String actorOrRole) throws SoapHeaderException {
  Iterator<SOAPHeaderElement> iterator =
      getSaajHeader().examineMustUnderstandHeaderElements(actorOrRole);
  return new SaajSoapHeaderElementIterator(iterator);
}

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

@Override
@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String actorOrRole) throws SoapHeaderException {
  Iterator<SOAPHeaderElement> iterator =
      getSaajHeader().examineMustUnderstandHeaderElements(actorOrRole);
  return new SaajSoapHeaderElementIterator(iterator);
}

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

@Override
@SuppressWarnings("unchecked")
public Iterator<SoapHeaderElement> examineMustUnderstandHeaderElements(String actorOrRole) throws SoapHeaderException {
  Iterator<SOAPHeaderElement> iterator =
      getSaajHeader().examineMustUnderstandHeaderElements(actorOrRole);
  return new SaajSoapHeaderElementIterator(iterator);
}

代码示例来源:origin: org.apache.ws.commons.axiom/saaj-testsuite

@Override
  protected void runTest() throws Throwable {
    MimeHeaders mimeHeaders = new MimeHeaders();
    mimeHeaders.addHeader("Content-Type", spec.getContentType());
    InputStream in = SOAPSampleSet.MUST_UNDERSTAND.getMessage(spec).getInputStream();
    try {
      SOAPMessage message = newMessageFactory().createMessage(mimeHeaders, in);
      SOAPHeader header = message.getSOAPHeader();
      Iterator it = header.examineMustUnderstandHeaderElements(null);
      assertTrue(it.hasNext());
      assertTrue(it.next() instanceof SOAPHeaderElement);
      assertFalse(it.hasNext());
    } finally {
      in.close();
    }
  }
}

代码示例来源:origin: org.jboss.ws.native/jbossws-native-core

if (soapHeader != null && soapHeader.examineMustUnderstandHeaderElements(Constants.URI_SOAP11_NEXT_ACTOR).hasNext())

相关文章