This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 5c780d5343980dd1255034825c78e45ad4589853 Author: Otavio R. Piske <angusyo...@gmail.com> AuthorDate: Sat Feb 24 12:00:41 2024 +0100 CAMEL-20459: documentation fixes for the convertHeaderTo EIP. Signed-off-by: Otavio R. Piske <angusyo...@gmail.com> --- .../main/docs/modules/eips/pages/convertHeaderTo-eip.adoc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/convertHeaderTo-eip.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/convertHeaderTo-eip.adoc index 21562f9881c..5bb2b185905 100644 --- a/core/camel-core-engine/src/main/docs/modules/eips/pages/convertHeaderTo-eip.adoc +++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/convertHeaderTo-eip.adoc @@ -12,7 +12,7 @@ The ConvertHeaderTo EIP allows you to transform message header to a different ty include::partial$eip-options.adoc[] // eip options: END -NOTE: The type is a FQN classname (fully qualified), so for example `java.lang.String`, `com.foo.MyBean` etc. +NOTE: The type is a FQN class name (fully qualified), so for example `java.lang.String`, `com.foo.MyBean` etc. However, Camel has shorthand for common Java types, most noticeable `String` can be used instead of `java.lang.String`. You can also use `byte[]` for a byte array. @@ -24,7 +24,7 @@ include::partial$eip-exchangeProperties.adoc[] == Example -For example to convert the foo header to `String`: +For example, to convert the foo header to `String`: [tabs] ==== @@ -113,12 +113,12 @@ The ConvertHeaderTo supports using xref:components:languages:simple-language.ado Suppose you have multiple headers: -- region -- emea -- na -- pacific +- `region` +- `emea` +- `na` +- `pacific` -And that region points to either ema, na or pacific which has some order details. +And that region points to either `emea`, `na` or `pacific`, which has some order details. Then you can use dynamic header to convert the header of choice. Now suppose that the region header has value `emea`: [tabs]