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/05 09:09:53 UTC

[camel] 06/06: Added setOutHeader EIP docs

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 2172e274f538e331a87461b1349b26f9a871949e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 5 10:09:28 2018 +0100

    Added setOutHeader EIP docs
---
 .../src/main/docs/eips/setOutHeader-eip.adoc       | 48 ++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/camel-core/src/main/docs/eips/setOutHeader-eip.adoc b/camel-core/src/main/docs/eips/setOutHeader-eip.adoc
new file mode 100644
index 0000000..a9d88fc
--- /dev/null
+++ b/camel-core/src/main/docs/eips/setOutHeader-eip.adoc
@@ -0,0 +1,48 @@
+== Set Out Header EIP (deprecated)
+== Set Header EIP
+
+This EIP is deprecated.
+The SetOutHeader EIP allows you to set an header on the out message of your exchange.
+
+=== Options
+
+// eip options: START
+The Set Out Header EIP supports 1 options which are listed below:
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *headerName* | *Required* Name of message header to set a new value |  | String
+|===
+// eip options: END
+
+=== Examples
+
+The following example shows how to use the SetOutHeader EIP
+
+[source,java]
+----
+RouteBuilder builder = new RouteBuilder() {
+    public void configure() {
+        from("direct:a")
+            .setOutHeader("myHeader", 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"/>
+        <setOutHeader headerName="myHeader">
+            <constant>test</constant>
+        </setOutHeader>
+        <to uri="direct:b"/>
+    </route>
+</camelContext>
+----

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