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 2019/10/02 03:29:38 UTC
[camel] branch master updated: Update enrich-eip.adoc
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new be999fe Update enrich-eip.adoc
be999fe is described below
commit be999fe2b4d444479a15507726f8e56dcb0b2a15
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Oct 2 05:29:33 2019 +0200
Update enrich-eip.adoc
---
core/camel-core-engine/src/main/docs/eips/enrich-eip.adoc | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/core/camel-core-engine/src/main/docs/eips/enrich-eip.adoc b/core/camel-core-engine/src/main/docs/eips/enrich-eip.adoc
index 153c185..9a82b39 100644
--- a/core/camel-core-engine/src/main/docs/eips/enrich-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/eips/enrich-eip.adoc
@@ -73,15 +73,15 @@ from("activemq:My.Queue").
=== Using Spring XML
[source,xml]
---------------------------------------------------------
+----
<route>
<from uri="activemq:Input"/>
<bean ref="myBeanName" method="doTransform"/>
<to uri="activemq:Output"/>
</route>
---------------------------------------------------------
+----
-== Content enrichment using the `enrich` DSL element
+== Content enrichment using the enrich DSL element
Camel comes with flavor `enrich` as a choice of content enricher in the DSL.
The other one is `pollEnrich`
@@ -90,7 +90,7 @@ The other one is `pollEnrich`
Both `enrich` and `pollEnrich` supports dynamic endpoints that uses an Expression to compute the uri, which allows to use data from the current Exchange.
-=== A little enrich example using Java:
+=== Enrich example using Java
[source,java]
----
@@ -173,7 +173,6 @@ In the route above the message sent to the direct:result endpoint will contain t
----
== Using dynamic uris
-*Available as of Camel 2.16*
Both `enrich` and `pollEnrich` supports using dynamic uris computed based on information from the current Exchange. For example to enrich from a HTTP endpoint where the header with key orderId is used as part of the content-path of the HTTP url:
[source,java]