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
commit 166a554a923e8f0ec6afd2318972d268dda33a56 Author: Claus Ibsen <[email protected]> AuthorDate: Tue Mar 31 12:27:11 2020 +0200 Regen --- .../modules/ROOT/pages/azure-blob-component.adoc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/components/modules/ROOT/pages/azure-blob-component.adoc b/docs/components/modules/ROOT/pages/azure-blob-component.adoc index 7a63242..8d49d15 100644 --- a/docs/components/modules/ROOT/pages/azure-blob-component.adoc +++ b/docs/components/modules/ROOT/pages/azure-blob-component.adoc @@ -18,7 +18,7 @@ https://docs.microsoft.com/azure/[Azure Documentation Portal]. == URI Format -[source,java] +[source,text] ------------------------------ azure-blob://accountName/containerName[/blobName][?options] ------------------------------ @@ -235,6 +235,20 @@ from("azure-blob://" + accountName + "/" + containerName + "/" + fileName + "?az .to("mock:result"); ---- +== Dynamic blob names + +The producer supports overriding the default blob name from a message header as shown below: + +[source,java] +---- + .setHeader("CamelAzureOverrideBlobName", constant("myNewBlob")) + .to("azure-blob://myacount/mycontainer/myblob") +---- + +Here the producer would normally use `myBlob` as the blob name, but the header will override this and use +`myNewBlob` instead. This allow for dynamic blob names. + + == Dependencies Maven users will need to add the following dependency to their `pom.xml`.
