Regen docs
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/77678cee Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/77678cee Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/77678cee Branch: refs/heads/master Commit: 77678ceec7a2dfbd2ac0c2420d868c3bafb9d9e5 Parents: 0ec59ab Author: Claus Ibsen <[email protected]> Authored: Wed Mar 22 21:28:55 2017 +0100 Committer: Claus Ibsen <[email protected]> Committed: Wed Mar 22 21:28:55 2017 +0100 ---------------------------------------------------------------------- .../src/main/docs/tarfile-dataformat.adoc | 3 ++- .../springboot/TarFileDataFormatConfiguration.java | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/77678cee/components/camel-tarfile/src/main/docs/tarfile-dataformat.adoc ---------------------------------------------------------------------- diff --git a/components/camel-tarfile/src/main/docs/tarfile-dataformat.adoc b/components/camel-tarfile/src/main/docs/tarfile-dataformat.adoc index be8c891..e0dda4a 100644 --- a/components/camel-tarfile/src/main/docs/tarfile-dataformat.adoc +++ b/components/camel-tarfile/src/main/docs/tarfile-dataformat.adoc @@ -14,7 +14,7 @@ aggregate multiple messages into a single Tar File. // dataformat options: START -The Tar File dataformat supports 2 options which are listed below. +The Tar File dataformat supports 3 options which are listed below. @@ -22,6 +22,7 @@ The Tar File dataformat supports 2 options which are listed below. |======================================================================= | Name | Default | Java Type | Description | usingIterator | false | Boolean | If the tar file has more then one entry the setting this option to true allows to work with the splitter EIP to split the data using an iterator in a streaming mode. +| allowEmptyDirectory | false | Boolean | If the tar file has more then one entry setting this option to true allows to get the iterator even if the directory is empty | contentTypeHeader | false | Boolean | Whether the data format should set the Content-Type header with the type from the data format if the data format is capable of doing so. For example application/xml for data formats marshalling to XML or application/json for data formats marshalling to JSon etc. |======================================================================= // dataformat options: END http://git-wip-us.apache.org/repos/asf/camel/blob/77678cee/platforms/spring-boot/components-starter/camel-tarfile-starter/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java ---------------------------------------------------------------------- diff --git a/platforms/spring-boot/components-starter/camel-tarfile-starter/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java b/platforms/spring-boot/components-starter/camel-tarfile-starter/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java index 87cbeb0..6d96c3b 100644 --- a/platforms/spring-boot/components-starter/camel-tarfile-starter/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java +++ b/platforms/spring-boot/components-starter/camel-tarfile-starter/src/main/java/org/apache/camel/dataformat/tarfile/springboot/TarFileDataFormatConfiguration.java @@ -33,6 +33,11 @@ public class TarFileDataFormatConfiguration { */ private Boolean usingIterator = false; /** + * If the tar file has more then one entry setting this option to true + * allows to get the iterator even if the directory is empty + */ + private Boolean allowEmptyDirectory = false; + /** * Whether the data format should set the Content-Type header with the type * from the data format if the data format is capable of doing so. For * example application/xml for data formats marshalling to XML or @@ -48,6 +53,14 @@ public class TarFileDataFormatConfiguration { this.usingIterator = usingIterator; } + public Boolean getAllowEmptyDirectory() { + return allowEmptyDirectory; + } + + public void setAllowEmptyDirectory(Boolean allowEmptyDirectory) { + this.allowEmptyDirectory = allowEmptyDirectory; + } + public Boolean getContentTypeHeader() { return contentTypeHeader; }
