camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1188881 - /camel/trunk/components/camel-saxon/src/main/java/org/apache/camel/component/xquery/XQueryBuilder.java
Date Tue, 25 Oct 2011 20:04:01 GMT
Author: davsclaus
Date: Tue Oct 25 20:04:01 2011
New Revision: 1188881

URL: http://svn.apache.org/viewvc?rev=1188881&view=rev
Log:
CAMEL-4584: Added option allowStAX to xquery component. Fixed issue with not closing underlying
input stream if used.

Modified:
    camel/trunk/components/camel-saxon/src/main/java/org/apache/camel/component/xquery/XQueryBuilder.java

Modified: camel/trunk/components/camel-saxon/src/main/java/org/apache/camel/component/xquery/XQueryBuilder.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-saxon/src/main/java/org/apache/camel/component/xquery/XQueryBuilder.java?rev=1188881&r1=1188880&r2=1188881&view=diff
==============================================================================
--- camel/trunk/components/camel-saxon/src/main/java/org/apache/camel/component/xquery/XQueryBuilder.java
(original)
+++ camel/trunk/components/camel-saxon/src/main/java/org/apache/camel/component/xquery/XQueryBuilder.java
Tue Oct 25 20:04:01 2011
@@ -477,13 +477,9 @@ public abstract class XQueryBuilder impl
                     source = getSource(exchange, body);
                 }
 
-                // there is a couple of special types we need to check
+                // special for bean invocation
                 if (source == null) {
-                    if (body instanceof WrappedFile) {
-                        // special for files so we can work with them out of the box
-                        is = exchange.getContext().getTypeConverter().convertTo(InputStream.class,
body);
-                        source = converter.toDOMSource(is);
-                    } else if (body instanceof BeanInvocation) {
+                    if (body instanceof BeanInvocation) {
                         // if its a null bean invocation then handle that
                         BeanInvocation bi = exchange.getContext().getTypeConverter().convertTo(BeanInvocation.class,
body);
                         if (bi.getArgs() != null && bi.getArgs().length == 1 &&
bi.getArgs()[0] == null) {



Mime
View raw message