本文整理了Java中org.apache.axiom.om.OMElement.buildWithAttachments()
方法的一些代码示例,展示了OMElement.buildWithAttachments()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OMElement.buildWithAttachments()
方法的具体详情如下:
包路径:org.apache.axiom.om.OMElement
类名称:OMElement
方法名:buildWithAttachments
暂无
代码示例来源:origin: wso2/wso2-synapse
private OMElement buildOMElement(String xml) {
// intentionally building the resulting OMElement. See ESBJAVA-3478.
if (xml == null) {
return null;
}
OMElement result = SynapseConfigUtils.stringToOM(xml);
result.buildWithAttachments();
return result;
}
代码示例来源:origin: org.apache.axis2/axis2-transport-testkit
public OMElement echoOMElement(OMElement omEle) {
omEle.buildWithAttachments();
omEle.setLocalName(omEle.getLocalName() + "Response");
if (omEle.getFirstElement().getText().trim().startsWith("fault")) {
throw new RuntimeException("fault string found in echoOMElement");
}
return omEle;
}
代码示例来源:origin: org.apache.axis2.transport/axis2-transport-testkit
public OMElement echoOMElement(OMElement omEle) {
omEle.buildWithAttachments();
omEle.setLocalName(omEle.getLocalName() + "Response");
if (omEle.getFirstElement().getText().trim().startsWith("fault")) {
throw new RuntimeException("fault string found in echoOMElement");
}
return omEle;
}
代码示例来源:origin: apache/axis2-java
public OMElement echoOMElement(OMElement omEle) {
omEle.buildWithAttachments();
omEle.setLocalName(omEle.getLocalName() + "Response");
if (omEle.getFirstElement().getText().trim().startsWith("fault")) {
throw new RuntimeException("fault string found in echoOMElement");
}
return omEle;
}
代码示例来源:origin: org.apache.ws.commons.axiom/axiom-impl
OMElement newElement = (new StAXOMBuilder(this, childElement
.getXMLStreamReader())).getDocumentElement();
newElement.buildWithAttachments();
return newElement;
代码示例来源:origin: org.apache.ws.commons.axiom/om-aspects
OMElement newElement = (new StAXOMBuilder(this, childElement
.getXMLStreamReader())).getDocumentElement();
newElement.buildWithAttachments();
return newElement;
内容来源于网络,如有侵权,请联系作者删除!