本文整理了Java中javax.xml.soap.SOAPHeader.examineMustUnderstandHeaderElements()
方法的一些代码示例,展示了SOAPHeader.examineMustUnderstandHeaderElements()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SOAPHeader.examineMustUnderstandHeaderElements()
方法的具体详情如下:
包路径:javax.xml.soap.SOAPHeader
类名称: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())
内容来源于网络,如有侵权,请联系作者删除!