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
The following commit(s) were added to refs/heads/main by this push:
new dc07df2 CAMEL-17161 - Added more docs
dc07df2 is described below
commit dc07df2ba5d1f763dbc8831eb467a87b31036ada
Author: Andrea Cosentino <[email protected]>
AuthorDate: Tue Nov 16 16:36:16 2021 +0100
CAMEL-17161 - Added more docs
---
.../src/main/docs/azure-storage-blob-component.adoc | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git
a/components/camel-azure/camel-azure-storage-blob/src/main/docs/azure-storage-blob-component.adoc
b/components/camel-azure/camel-azure-storage-blob/src/main/docs/azure-storage-blob-component.adoc
index 798b9c9..f6d866c 100644
---
a/components/camel-azure/camel-azure-storage-blob/src/main/docs/azure-storage-blob-component.adoc
+++
b/components/camel-azure/camel-azure-storage-blob/src/main/docs/azure-storage-blob-component.adoc
@@ -597,6 +597,23 @@ from("direct:start")
.to("mock:result");
--------------------------------------------------------------------------------
+- `copyBlob`
+
+[source,java]
+--------------------------------------------------------------------------------
+
+from("direct:copyBlob")
+ .process(exchange -> {
+ exchange.getIn().setHeader(BlobConstants.BLOB_NAME, "file.txt");
+ exchange.getMessage().setHeader(BlobConstants.SOURCE_BLOB_CONTAINER_NAME,
"containerblob1");
+ exchange.getMessage().setHeader(BlobConstants.SOURCE_BLOB_ACCOUNT_NAME,
"account");
+ })
+
.to("azure-storage-blob://account/containerblob2?operation=copyBlob&sourceBlobAccessKey=RAW(accessKey)")
+ .to("mock:result");
+--------------------------------------------------------------------------------
+
+In this way the file.txt in the container containerblob1 of the account
'account', will be copied to the container containerblob2 of the same account.
+
=== Development Notes (Important)