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:34:53 UTC

[camel] branch master updated (b31d260 -> bc2165a)

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 b31d260  Added SetBody EIP docs
     new aba1a83  Regen docs
     new bc2165a  Added SetProperty EIP docs

The 2 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:
 camel-core/src/main/docs/eips/setBody-eip.adoc     |  3 +-
 camel-core/src/main/docs/eips/setProperty-eip.adoc | 46 ++++++++++++++++++++++
 2 files changed, 48 insertions(+), 1 deletion(-)
 create mode 100644 camel-core/src/main/docs/eips/setProperty-eip.adoc

-- 
To stop receiving notification emails like this one, please contact
acosentino@apache.org.

[camel] 01/02: Regen 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 aba1a83cc05fd8808399f046105a24264bae25ac
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 2 08:33:41 2018 +0100

    Regen docs
---
 camel-core/src/main/docs/eips/setBody-eip.adoc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/camel-core/src/main/docs/eips/setBody-eip.adoc b/camel-core/src/main/docs/eips/setBody-eip.adoc
index a0734ca..1141371 100644
--- a/camel-core/src/main/docs/eips/setBody-eip.adoc
+++ b/camel-core/src/main/docs/eips/setBody-eip.adoc
@@ -1,3 +1,4 @@
+[[setBody-eip]]
 == Set Body EIP
 
 The SetBody EIP allows you to set the body of your exchange.
@@ -34,4 +35,4 @@ And the same example using XML:
         <setBody><constant>test</constant></setBody>
     </route>
 </camelContext>
-----
+----
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
acosentino@apache.org.

[camel] 02/02: Added SetProperty 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 bc2165a9e3801737e0a88258c1f0b33e11020af6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Mar 2 08:34:02 2018 +0100

    Added SetProperty EIP docs
---
 camel-core/src/main/docs/eips/setProperty-eip.adoc | 46 ++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/camel-core/src/main/docs/eips/setProperty-eip.adoc b/camel-core/src/main/docs/eips/setProperty-eip.adoc
new file mode 100644
index 0000000..085ebfc
--- /dev/null
+++ b/camel-core/src/main/docs/eips/setProperty-eip.adoc
@@ -0,0 +1,46 @@
+[[setProperty-eip]]
+== Set Property EIP
+
+The SetProperty EIP allows you to set the body of your exchange.
+
+=== Options
+
+// eip options: START
+The Set Property EIP supports 1 options which are listed below:
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *propertyName* | *Required* Name of exchange property to set a new value. The simple language can be used to define a dynamic evaluated exchange property name to be used. Otherwise a constant name will be used. |  | String
+|===
+// eip options: END
+
+=== Examples
+
+The following example shows how to use the SetProperty EIP
+
+[source,java]
+----
+RouteBuilder builder = new RouteBuilder() {
+    public void configure() {
+        from("direct:a")
+            .setProperty("myProperty", 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"/>
+        <setProperty propertyName="myProperty">
+            <constant>test</constant>
+        </setProperty>
+    </route>
+</camelContext>
+----

-- 
To stop receiving notification emails like this one, please contact
acosentino@apache.org.