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 2018/03/02 07:25:59 UTC
[camel] branch master updated (d16f24d -> b31d260)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.
from d16f24d Skip tests that causes problems on CI server
new c2f172b Added When EIP docs
new f5090ab Added Otherwise EIP docs
new 03775ee Minor docs fixes
new b31d260 Added SetBody EIP docs
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../eips/{choice-eip.adoc => otherwise-eip.adoc} | 26 ++++-----------
camel-core/src/main/docs/eips/setBody-eip.adoc | 37 ++++++++++++++++++++++
.../docs/eips/{choice-eip.adoc => when-eip.adoc} | 26 ++++-----------
3 files changed, 51 insertions(+), 38 deletions(-)
copy camel-core/src/main/docs/eips/{choice-eip.adoc => otherwise-eip.adoc} (62%)
create mode 100644 camel-core/src/main/docs/eips/setBody-eip.adoc
copy camel-core/src/main/docs/eips/{choice-eip.adoc => when-eip.adoc} (62%)
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.
[camel] 04/04: Added SetBody EIP docs
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit b31d260c683808733816ea25477d2808b74f26c4
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 2 08:25:40 2018 +0100
Added SetBody EIP docs
---
camel-core/src/main/docs/eips/setBody-eip.adoc | 37 ++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/camel-core/src/main/docs/eips/setBody-eip.adoc b/camel-core/src/main/docs/eips/setBody-eip.adoc
new file mode 100644
index 0000000..a0734ca
--- /dev/null
+++ b/camel-core/src/main/docs/eips/setBody-eip.adoc
@@ -0,0 +1,37 @@
+== Set Body EIP
+
+The SetBody EIP allows you to set the body of your exchange.
+
+=== Options
+
+// eip options: START
+The Set Body EIP has no options.
+// eip options: END
+
+=== Examples
+
+The following example shows how to use the SetBody EIP
+
+[source,java]
+----
+RouteBuilder builder = new RouteBuilder() {
+ public void configure() {
+ from("direct:a")
+ .setBody(constant("test"))
+ .to("direct:b");
+ }
+};
+----
+
+
+And the same example using XML:
+
+[source,xml]
+----
+<camelContext xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="direct:a"/>
+ <setBody><constant>test</constant></setBody>
+ </route>
+</camelContext>
+----
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.
[camel] 02/04: Added Otherwise EIP docs
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit f5090ab0e700fc1b22cfed20bf4615e16958a4c2
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 2 08:16:22 2018 +0100
Added Otherwise EIP docs
---
camel-core/src/main/docs/eips/otherwise-eip.adoc | 61 ++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/camel-core/src/main/docs/eips/otherwise-eip.adoc b/camel-core/src/main/docs/eips/otherwise-eip.adoc
new file mode 100644
index 0000000..c98b15c
--- /dev/null
+++ b/camel-core/src/main/docs/eips/otherwise-eip.adoc
@@ -0,0 +1,61 @@
+[[otherwise-eip]]
+== Otherwise EIP
+
+The Otherwise EIP is related to http://www.enterpriseintegrationpatterns.com/ContentBasedRouter.html[Content
+Based Router] from the link:enterprise-integration-patterns.html[EIP
+patterns]
+
+image:http://www.enterpriseintegrationpatterns.com/img/ContentBasedRouter.gif[image]
+
+=== Options
+
+// eip options: START
+The Otherwise EIP has no options.
+// eip options: END
+
+=== Examples
+
+The following example shows how to route a request from an input
+*seda:a* endpoint to either *seda:b*, *seda:c* or *seda:d* depending on
+the evaluation of various link:predicate.html[Predicate] expressions
+
+[source,java]
+----
+RouteBuilder builder = new RouteBuilder() {
+ public void configure() {
+ from("direct:a")
+ .choice()
+ .when(simple("${header.foo} == 'bar'"))
+ .to("direct:b")
+ .when(simple("${header.foo} == 'cheese'"))
+ .to("direct:c")
+ .otherwise()
+ .to("direct:d");
+ }
+};
+----
+
+
+And the same example using XML:
+
+[source,xml]
+----
+<camelContext xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="direct:a"/>
+ <choice>
+ <when>
+ <simple>${header.foo} == 'bar'</simple>
+ <to uri="direct:b"/>
+ </when>
+ <when>
+ <simple>${header.foo} == 'cheese'</simple>
+ <to uri="direct:c"/>
+ </when>
+ <otherwise>
+ <to uri="direct:d"/>
+ </otherwise>
+ </choice>
+ </route>
+</camelContext>
+----
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.
[camel] 01/04: Added When EIP docs
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit c2f172b93508d4307c16d921a2374a8574118839
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 2 08:13:41 2018 +0100
Added When EIP docs
---
camel-core/src/main/docs/eips/when-eip.adoc | 61 +++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/camel-core/src/main/docs/eips/when-eip.adoc b/camel-core/src/main/docs/eips/when-eip.adoc
new file mode 100644
index 0000000..7f3b791
--- /dev/null
+++ b/camel-core/src/main/docs/eips/when-eip.adoc
@@ -0,0 +1,61 @@
+[[when-eip]]
+== When EIP
+
+The When EIP is related to http://www.enterpriseintegrationpatterns.com/ContentBasedRouter.html[Content
+Based Router] from the link:enterprise-integration-patterns.html[EIP
+patterns]
+
+image:http://www.enterpriseintegrationpatterns.com/img/ContentBasedRouter.gif[image]
+
+=== Options
+
+// eip options: START
+The When EIP has no options.
+// eip options: END
+
+=== Examples
+
+The following example shows how to route a request from an input
+*seda:a* endpoint to either *seda:b*, *seda:c* or *seda:d* depending on
+the evaluation of various link:predicate.html[Predicate] expressions
+
+[source,java]
+----
+RouteBuilder builder = new RouteBuilder() {
+ public void configure() {
+ from("direct:a")
+ .choice()
+ .when(simple("${header.foo} == 'bar'"))
+ .to("direct:b")
+ .when(simple("${header.foo} == 'cheese'"))
+ .to("direct:c")
+ .otherwise()
+ .to("direct:d");
+ }
+};
+----
+
+
+And the same example using XML:
+
+[source,xml]
+----
+<camelContext xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="direct:a"/>
+ <choice>
+ <when>
+ <simple>${header.foo} == 'bar'</simple>
+ <to uri="direct:b"/>
+ </when>
+ <when>
+ <simple>${header.foo} == 'cheese'</simple>
+ <to uri="direct:c"/>
+ </when>
+ <otherwise>
+ <to uri="direct:d"/>
+ </otherwise>
+ </choice>
+ </route>
+</camelContext>
+----
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.
[camel] 03/04: Minor docs fixes
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 03775eed91b80657d028de8ace54b6c8111ec966
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 2 08:20:02 2018 +0100
Minor docs fixes
---
camel-core/src/main/docs/eips/otherwise-eip.adoc | 2 +-
camel-core/src/main/docs/eips/when-eip.adoc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/camel-core/src/main/docs/eips/otherwise-eip.adoc b/camel-core/src/main/docs/eips/otherwise-eip.adoc
index c98b15c..724781c 100644
--- a/camel-core/src/main/docs/eips/otherwise-eip.adoc
+++ b/camel-core/src/main/docs/eips/otherwise-eip.adoc
@@ -16,7 +16,7 @@ The Otherwise EIP has no options.
=== Examples
The following example shows how to route a request from an input
-*seda:a* endpoint to either *seda:b*, *seda:c* or *seda:d* depending on
+*direct:a* endpoint to either *direct:b*, *direct:c* or *direct:d* depending on
the evaluation of various link:predicate.html[Predicate] expressions
[source,java]
diff --git a/camel-core/src/main/docs/eips/when-eip.adoc b/camel-core/src/main/docs/eips/when-eip.adoc
index 7f3b791..cf6747c 100644
--- a/camel-core/src/main/docs/eips/when-eip.adoc
+++ b/camel-core/src/main/docs/eips/when-eip.adoc
@@ -16,7 +16,7 @@ The When EIP has no options.
=== Examples
The following example shows how to route a request from an input
-*seda:a* endpoint to either *seda:b*, *seda:c* or *seda:d* depending on
+*direct:a* endpoint to either *direct:b*, *direct:c* or *direct:d* depending on
the evaluation of various link:predicate.html[Predicate] expressions
[source,java]
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.