This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-4.4.x in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.4.x by this push: new 45e76fb2775 Regen 45e76fb2775 is described below commit 45e76fb2775321812514b48075a093ce703101e7 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Tue Oct 8 11:10:30 2024 +0200 Regen --- .../zipfile/ZipFileDataFormatConfigurer.java | 34 ++++++++++++++++++++++ .../org/apache/camel/configurer/zipFile-dataformat | 2 ++ .../org/apache/camel/dataformat.properties | 7 +++++ .../services/org/apache/camel/dataformat/zipFile | 2 ++ .../apache/camel/dataformat/zipfile/zipFile.json | 25 ++++++++++++++++ 5 files changed, 70 insertions(+) diff --git a/components/camel-zipfile/src/generated/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatConfigurer.java b/components/camel-zipfile/src/generated/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatConfigurer.java new file mode 100644 index 00000000000..8f68fc15ed2 --- /dev/null +++ b/components/camel-zipfile/src/generated/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatConfigurer.java @@ -0,0 +1,34 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.dataformat.zipfile; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.camel.CamelContext; +import org.apache.camel.spi.GeneratedPropertyConfigurer; +import org.apache.camel.support.component.PropertyConfigurerSupport; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class ZipFileDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer { + + @Override + public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) { + ZipFileDataFormat dataformat = (ZipFileDataFormat) target; + switch (ignoreCase ? name.toLowerCase() : name) { + case "usingiterator": + case "usingIterator": dataformat.setUsingIterator(property(camelContext, boolean.class, value)); return true; + case "allowemptydirectory": + case "allowEmptyDirectory": dataformat.setAllowEmptyDirectory(property(camelContext, boolean.class, value)); return true; + case "preservepathelements": + case "preservePathElements": dataformat.setPreservePathElements(property(camelContext, boolean.class, value)); return true; + case "maxdecompressedsize": + case "maxDecompressedSize": dataformat.setMaxDecompressedSize(property(camelContext, long.class, value)); return true; + default: return false; + } + } + +} + diff --git a/components/camel-zipfile/src/generated/resources/META-INF/services/org/apache/camel/configurer/zipFile-dataformat b/components/camel-zipfile/src/generated/resources/META-INF/services/org/apache/camel/configurer/zipFile-dataformat new file mode 100644 index 00000000000..f391b96f073 --- /dev/null +++ b/components/camel-zipfile/src/generated/resources/META-INF/services/org/apache/camel/configurer/zipFile-dataformat @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.dataformat.zipfile.ZipFileDataFormatConfigurer diff --git a/components/camel-zipfile/src/generated/resources/META-INF/services/org/apache/camel/dataformat.properties b/components/camel-zipfile/src/generated/resources/META-INF/services/org/apache/camel/dataformat.properties new file mode 100644 index 00000000000..236f525e4cb --- /dev/null +++ b/components/camel-zipfile/src/generated/resources/META-INF/services/org/apache/camel/dataformat.properties @@ -0,0 +1,7 @@ +# Generated by camel build tools - do NOT edit this file! +dataFormats=zipFile +groupId=org.apache.camel +artifactId=camel-zipfile +version=4.4.4-SNAPSHOT +projectName=Camel :: Zip File +projectDescription=Camel Zip file support diff --git a/components/camel-zipfile/src/generated/resources/META-INF/services/org/apache/camel/dataformat/zipFile b/components/camel-zipfile/src/generated/resources/META-INF/services/org/apache/camel/dataformat/zipFile new file mode 100644 index 00000000000..cb0c8df1753 --- /dev/null +++ b/components/camel-zipfile/src/generated/resources/META-INF/services/org/apache/camel/dataformat/zipFile @@ -0,0 +1,2 @@ +# Generated by camel build tools - do NOT edit this file! +class=org.apache.camel.dataformat.zipfile.ZipFileDataFormat diff --git a/components/camel-zipfile/src/generated/resources/org/apache/camel/dataformat/zipfile/zipFile.json b/components/camel-zipfile/src/generated/resources/org/apache/camel/dataformat/zipfile/zipFile.json new file mode 100644 index 00000000000..2fea6f9281e --- /dev/null +++ b/components/camel-zipfile/src/generated/resources/org/apache/camel/dataformat/zipfile/zipFile.json @@ -0,0 +1,25 @@ +{ + "dataformat": { + "kind": "dataformat", + "name": "zipFile", + "title": "Zip File", + "description": "Compression and decompress streams using java.util.zip.ZipStream.", + "deprecated": false, + "firstVersion": "2.11.0", + "label": "dataformat,transformation,file", + "javaType": "org.apache.camel.dataformat.zipfile.ZipFileDataFormat", + "supportLevel": "Stable", + "groupId": "org.apache.camel", + "artifactId": "camel-zipfile", + "version": "4.4.4-SNAPSHOT", + "modelName": "zipFile", + "modelJavaType": "org.apache.camel.model.dataformat.ZipFileDataFormat" + }, + "properties": { + "id": { "index": 0, "kind": "attribute", "displayName": "Id", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The id of this node" }, + "usingIterator": { "index": 1, "kind": "attribute", "displayName": "Using Iterator", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If the zip file has more than one entry, the setting this option to true, allows working with the splitter EIP, to split the data using an iterator in a streaming mode." }, + "allowEmptyDirectory": { "index": 2, "kind": "attribute", "displayName": "Allow Empty Directory", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If the zip file has more than one entry, setting this option to true, allows to get the iterator even if the directory is empty" }, + "preservePathElements": { "index": 3, "kind": "attribute", "displayName": "Preserve Path Elements", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If the file name contains path elements, setting this option to true, allows the path to be maintained in the zip file." }, + "maxDecompressedSize": { "index": 4, "kind": "attribute", "displayName": "Max Decompressed Size", "label": "advanced", "required": false, "type": "integer", "javaType": "java.lang.Long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "1073741824", "description": "Set the maximum decompressed size of a zip file (in bytes). The default value if not specified corresponds to 1 gigabyte. An IOException will be thrown if the decompressed size exceeds this amount. [...] + } +}