Author: veithen
Date: Wed Jul 13 22:05:12 2011
New Revision: 1146500
URL: http://svn.apache.org/viewvc?rev=1146500&view=rev
Log:
Removed some illegal references to Axiom implementation classes.
Modified:
synapse/trunk/java/modules/commons/src/main/java/org/apache/synapse/commons/evaluators/source/SOAPEnvelopeTextRetriever.java
Modified:
synapse/trunk/java/modules/commons/src/main/java/org/apache/synapse/commons/evaluators/source/SOAPEnvelopeTextRetriever.java
URL:
http://svn.apache.org/viewvc/synapse/trunk/java/modules/commons/src/main/java/org/apache/synapse/commons/evaluators/source/SOAPEnvelopeTextRetriever.java?rev=1146500&r1=1146499&r2=1146500&view=diff
==============================================================================
---
synapse/trunk/java/modules/commons/src/main/java/org/apache/synapse/commons/evaluators/source/SOAPEnvelopeTextRetriever.java
(original)
+++
synapse/trunk/java/modules/commons/src/main/java/org/apache/synapse/commons/evaluators/source/SOAPEnvelopeTextRetriever.java
Wed Jul 13 22:05:12 2011
@@ -23,10 +23,10 @@ import org.apache.synapse.commons.evalua
import org.apache.synapse.commons.evaluators.EvaluatorException;
import org.apache.axiom.soap.SOAPEnvelope;
import org.apache.axiom.om.xpath.AXIOMXPath;
-import org.apache.axiom.om.impl.llom.OMTextImpl;
-import org.apache.axiom.om.impl.llom.OMElementImpl;
-import org.apache.axiom.om.impl.llom.OMDocumentImpl;
import org.apache.axiom.om.OMAttribute;
+import org.apache.axiom.om.OMDocument;
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.OMText;
import org.jaxen.JaxenException;
import java.util.List;
@@ -61,18 +61,18 @@ public class SOAPEnvelopeTextRetriever i
StringBuffer textValue = new StringBuffer();
for (Object o : list) {
- if (o instanceof OMTextImpl) {
- textValue.append(((OMTextImpl) o).getText());
+ if (o instanceof OMText) {
+ textValue.append(((OMText) o).getText());
- } else if (o instanceof OMElementImpl) {
- String s = ((OMElementImpl) o).getText();
+ } else if (o instanceof OMElement) {
+ String s = ((OMElement) o).getText();
if (s.trim().length() == 0) {
s = o.toString();
}
textValue.append(s);
- } else if (o instanceof OMDocumentImpl) {
- textValue.append(((OMDocumentImpl)
o).getOMDocumentElement().toString());
+ } else if (o instanceof OMDocument) {
+ textValue.append(((OMDocument)
o).getOMDocumentElement().toString());
} else if (o instanceof OMAttribute) {
textValue.append(((OMAttribute) o).getAttributeValue());
}