You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/10/05 09:11:37 UTC

[camel] branch camel-3.x updated: docs: correct DSL examples (#11649)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.x by this push:
     new a749e8742e8 docs: correct DSL examples (#11649)
a749e8742e8 is described below

commit a749e8742e8d9c4910d5ffbafc91c963a5b28317
Author: Claude Mamo <82...@users.noreply.github.com>
AuthorDate: Thu Oct 5 11:11:30 2023 +0200

    docs: correct DSL examples (#11649)
---
 .../camel-dhis2-component/src/main/docs/dhis2-component.adoc        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-dhis2/camel-dhis2-component/src/main/docs/dhis2-component.adoc b/components/camel-dhis2/camel-dhis2-component/src/main/docs/dhis2-component.adoc
index b55d85aec1c..b19f3560107 100644
--- a/components/camel-dhis2/camel-dhis2-component/src/main/docs/dhis2-component.adoc
+++ b/components/camel-dhis2/camel-dhis2-component/src/main/docs/dhis2-component.adoc
@@ -101,7 +101,7 @@ public class MyRouteBuilder extends RouteBuilder {
         from("direct:getCollection")
             .to("dhis2://get/collection?path=organisationUnits&arrayName=organisationUnits&username=admin&password=district&baseApiUrl=https://play.dhis2.org/2.39.1/api")
             .split().body()
-            .convertBody(org.hisp.dhis.api.model.v2_39_1.OrganisationUnit.class).log("${body}");
+            .convertBodyTo(org.hisp.dhis.api.model.v2_39_1.OrganisationUnit.class).log("${body}");
     }
 }
 ----
@@ -120,7 +120,7 @@ public class MyRouteBuilder extends RouteBuilder {
         from("direct:getCollection")
             .to("dhis2://get/collection?path=organisationUnits&fields=code&arrayName=organisationUnits&username=admin&password=district&baseApiUrl=https://play.dhis2.org/2.39.1/api")
             .split().body()
-            .convertBody(org.hisp.dhis.api.model.v2_39_1.OrganisationUnit.class)
+            .convertBodyTo(org.hisp.dhis.api.model.v2_39_1.OrganisationUnit.class)
             .log("${body}");
     }
 }
@@ -140,7 +140,7 @@ public class MyRouteBuilder extends RouteBuilder {
         from("direct:getCollection")
             .to("dhis2://get/collection?path=users&filter=phoneNumber:!null:&arrayName=users&username=admin&password=district&baseApiUrl=https://play.dhis2.org/2.39.1/api")
             .split().body()
-            .convertBody(org.hisp.dhis.api.model.v2_39_1.User.class)
+            .convertBodyTo(org.hisp.dhis.api.model.v2_39_1.User.class)
             .log("${body}");
     }
 }