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 <anco...@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
acosent...@apache.org.

Reply via email to