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 2021/09/14 05:34:53 UTC
[camel] 03/07: CAMEL-16849 - Add at least one example for component
in docs - Camel-Atmos
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 6633328a4b898e68489ccec2c966a997acda275c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Sep 14 06:47:22 2021 +0200
CAMEL-16849 - Add at least one example for component in docs - Camel-Atmos
---
.../camel-atmos/src/main/docs/atmos-component.adoc | 23 +++++++---------------
1 file changed, 7 insertions(+), 16 deletions(-)
diff --git a/components/camel-atmos/src/main/docs/atmos-component.adoc b/components/camel-atmos/src/main/docs/atmos-component.adoc
index 64f2213..b1b2ca8 100644
--- a/components/camel-atmos/src/main/docs/atmos-component.adoc
+++ b/components/camel-atmos/src/main/docs/atmos-component.adoc
@@ -155,39 +155,30 @@ Whereas there are 4 types of producers which are
== Examples
-These example are taken from tests:
+=== Consumer Example
[source,java]
-------------------------------
-from("atmos:foo/get?remotePath=/path").to("mock:test");
+from("atmos:foo/get?remotePath=/path")
+ .to("mock:test");
-------------------------------
-Here, this is a consumer example.
`remotePath` represents the path from where the data will
be read and passes the camel exchange to regarding producer
-Underneath, this component uses atmos client API for this and
+Underneath, this component uses Atmos client API for this and
every other operations.
+=== Producer Example
+
[source,java]
-------------------------------
from("direct:start")
-.to("atmos://get?remotePath=/dummy/dummy.txt")
-.to("mock:result");
+ .to("atmos://get?remotePath=/dummy/dummy.txt")
-------------------------------
-Here, this a producer sample.
`remotePath` represents the path where the operations occur
on ViPR object data service. In producers, operations(`Get`,`Del`,
`Move`,`Put`) run on ViPR object data services and results are set
on headers of camel exchange.
-Regarding the operations, the following headers are set on camel
-exhange
-
-[source,text]
--------------------------------
-DOWNLOADED_FILE, DOWNLOADED_FILES, UPLOADED_FILE, UPLOADED_FILES, FOUND_FILES, DELETED_PATH, MOVED_PATH;
--------------------------------
-
-
include::{page-component-version}@camel-spring-boot::page$atmos-starter.adoc[]