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 2024/10/09 10:46:57 UTC

(camel) branch main updated: Polished EIP docs

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 01226dba147 Polished EIP docs
01226dba147 is described below

commit 01226dba1479ab9408f9c0a5052a1ce294801e1c
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Oct 9 12:46:37 2024 +0200

    Polished EIP docs
---
 .../docs/modules/eips/pages/removeHeaders-eip.adoc |  3 ++-
 .../modules/eips/pages/removeProperties-eip.adoc   | 30 +++++++++++++++++++++-
 2 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/removeHeaders-eip.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/removeHeaders-eip.adoc
index 0ad5b35e65e..97598fe8b56 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/removeHeaders-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/removeHeaders-eip.adoc
@@ -63,7 +63,8 @@ YAML::
 - from:
     uri: seda:b
     steps:
-      - removeHeaders: "*"
+      - removeHeaders:
+          pattern: "*"
       - to:
           uri: mock:result
 ----
diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/removeProperties-eip.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/removeProperties-eip.adoc
index b26d123c022..c2b71b2dd74 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/removeProperties-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/removeProperties-eip.adoc
@@ -32,6 +32,8 @@ matching by the following rules in the given order:
 
 == Remove all properties
 
+For example to remove all properties use * as follows:
+
 [tabs]
 ====
 Java::
@@ -53,9 +55,22 @@ XML::
   <to uri="mock:result"/>
 </route>
 ----
+
+YAML::
++
+[source,yaml]
+----
+- from:
+    uri: seda:b
+    steps:
+      - removeProperties:
+          pattern: "*"
+      - to:
+          uri: mock:result
+----
 ====
 
-NOTE: Be careful to remove all exchange properties as Camel uses internally exchange properties
+IMPORTANT: Be careful to remove all exchange properties as Camel uses internally exchange properties
 to keep state on the `Exchange` during routing. So use this with care. You should generally only remove
 custom exchange properties that are under your own control.
 
@@ -84,6 +99,19 @@ XML::
   <to uri="mock:result"/>
 </route>
 ----
+
+YAML::
++
+[source,yaml]
+----
+- from:
+    uri: seda:b
+    steps:
+      - removeProperties:
+          pattern: "Foo*"
+      - to:
+          uri: mock:result
+----
 ====
 
 == See Also