dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #18382
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7731: Minor correction: casting ProcessDefinition to RouteDefinition
------------------------------------------------------------
revno: 7731
committer: Bob Jolliffe <bobjolliffe@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-07-26 15:47:31 +0100
message:
Minor correction: casting ProcessDefinition to RouteDefinition
modified:
dhis-2/dhis-services/dhis-service-integration/src/main/java/org/hisp/dhis/integration/routes/XMLDataIn.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-integration/src/main/java/org/hisp/dhis/integration/routes/XMLDataIn.java'
--- dhis-2/dhis-services/dhis-service-integration/src/main/java/org/hisp/dhis/integration/routes/XMLDataIn.java 2012-07-26 11:16:13 +0000
+++ dhis-2/dhis-services/dhis-service-integration/src/main/java/org/hisp/dhis/integration/routes/XMLDataIn.java 2012-07-26 14:47:31 +0000
@@ -30,7 +30,7 @@
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.builder.xml.Namespaces;
import org.apache.camel.model.DescriptionDefinition;
-import org.apache.camel.model.ProcessorDefinition;
+import org.apache.camel.model.RouteDefinition;
/**
* XMLDataIn route implements a Content Based Routing pattern
@@ -61,7 +61,7 @@
DescriptionDefinition xmlDesc = new DescriptionDefinition();
xmlDesc.setText( XMLDATA_IN_DESC);
- ProcessorDefinition xmlDataIn = from(XMLDATA_IN).convertBodyTo(java.lang.String.class, "UTF-8")
+ RouteDefinition xmlDataIn = (RouteDefinition) from(XMLDATA_IN).convertBodyTo(java.lang.String.class, "UTF-8")
.choice()
// send native dxf2 data directly to dhis2:data
.when().xpath( "boolean(/d:dataValueSet)", ns).convertBodyTo( java.io.InputStream.class).to("dhis2:data")