You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/03/13 08:29:34 UTC
[camel] branch master updated: Reformat the structure for the
documentation on Java DSL (#3632)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 96dc8d3 Reformat the structure for the documentation on Java DSL (#3632)
96dc8d3 is described below
commit 96dc8d31702c615288457946e511b0462eeba7d0
Author: Aemie Jariwala <44...@users.noreply.github.com>
AuthorDate: Fri Mar 13 13:59:23 2020 +0530
Reformat the structure for the documentation on Java DSL (#3632)
* Format the structure of snippet code for java-dsl document
* Format the structure of snippet code for java-dsl document
* Reformat the structure of snippet code for java-dsl document
* Reformat the structure of snippet code for java-dsl document
---
docs/user-manual/modules/ROOT/pages/java-dsl.adoc | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/docs/user-manual/modules/ROOT/pages/java-dsl.adoc b/docs/user-manual/modules/ROOT/pages/java-dsl.adoc
index e2a28aa..031f5b9 100644
--- a/docs/user-manual/modules/ROOT/pages/java-dsl.adoc
+++ b/docs/user-manual/modules/ROOT/pages/java-dsl.adoc
@@ -45,20 +45,20 @@ In the example above we have a single route, which pickup files,
[source,java]
---------------------------------------
- from("file:src/data?noop=true")
+from("file:src/data?noop=true")
---------------------------------------
-Then we use the Content Based Router (eg
-the choice) to route the message depending if the person is from London
+Then we use the `Content Based Router` (for ex:
+ the choice) to route the message depending if the person is from London
or not.
[source,java]
-------------------------------------------------------
- .choice()
- .when(xpath("/person/city = 'London'"))
- .to("file:target/messages/uk")
- .otherwise()
- .to("file:target/messages/others");
+.choice()
+ .when(xpath("/person/city = 'London'"))
+ .to("file:target/messages/uk")
+ .otherwise()
+ .to("file:target/messages/others");
-------------------------------------------------------
[[JavaDSL-Routes]]