This is an automated email from the ASF dual-hosted git repository. davsclaus 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 2b811b6 Regen for commit 642730785b459a93c0ceec6809e900a6b3fcfa9f (#7137) 2b811b6 is described below commit 2b811b65ab6c17cc7bb44dc67912ec18b7cf1744 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Mon Mar 7 15:51:17 2022 +0100 Regen for commit 642730785b459a93c0ceec6809e900a6b3fcfa9f (#7137) Signed-off-by: GitHub <nore...@github.com> Co-authored-by: davsclaus <davscl...@users.noreply.github.com> --- .../org/apache/camel/catalog/components/tika.json | 6 +- .../endpoint/dsl/TikaEndpointBuilderFactory.java | 106 ++++++++++++--------- 2 files changed, 63 insertions(+), 49 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/tika.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/tika.json index 135d860..8aa84d5 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/tika.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/tika.json @@ -28,9 +28,9 @@ "properties": { "operation": { "kind": "path", "displayName": "Operation", "group": "producer", "label": "", "required": true, "type": "object", "javaType": "org.apache.camel.component.tika.TikaOperation", "enum": [ "parse", "detect" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.tika.TikaConfiguration", "configurationField": "tikaConfiguration", "description": "Operation type" }, "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during sta [...] - "tikaConfig": { "kind": "parameter", "displayName": "Tika Config", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.tika.config.TikaConfig", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.tika.TikaConfiguration", "configurationField": "tikaConfiguration", "description": "Tika Config" }, - "tikaConfigUri": { "kind": "parameter", "displayName": "Tika Config Uri", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.tika.TikaConfiguration", "configurationField": "tikaConfiguration", "description": "Tika Config Url" }, "tikaParseOutputEncoding": { "kind": "parameter", "displayName": "Tika Parse Output Encoding", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.tika.TikaConfiguration", "configurationField": "tikaConfiguration", "description": "Tika Parse Output Encoding" }, - "tikaParseOutputFormat": { "kind": "parameter", "displayName": "Tika Parse Output Format", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.tika.TikaParseOutputFormat", "enum": [ "xml", "html", "text", "textMain" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "xml", "configurationClass": "org.apache.camel.component.tika.TikaConfiguration", "configurationField": "tikaConfiguration", "descriptio [...] + "tikaParseOutputFormat": { "kind": "parameter", "displayName": "Tika Parse Output Format", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.tika.TikaParseOutputFormat", "enum": [ "xml", "html", "text", "textMain" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "xml", "configurationClass": "org.apache.camel.component.tika.TikaConfiguration", "configurationField": "tikaConfiguration", "descriptio [...] + "tikaConfig": { "kind": "parameter", "displayName": "Tika Config", "group": "advanced", "label": "advanced", "required": false, "type": "object", "javaType": "org.apache.tika.config.TikaConfig", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.tika.TikaConfiguration", "configurationField": "tikaConfiguration", "description": "Tika Config" }, + "tikaConfigUri": { "kind": "parameter", "displayName": "Tika Config Uri", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.tika.TikaConfiguration", "configurationField": "tikaConfiguration", "description": "Tika Config Url" } } } diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TikaEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TikaEndpointBuilderFactory.java index 4678548..be4d781 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TikaEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/TikaEndpointBuilderFactory.java @@ -38,6 +38,9 @@ public interface TikaEndpointBuilderFactory { * Builder for endpoint for the Tika component. */ public interface TikaEndpointBuilder extends EndpointProducerBuilder { + default AdvancedTikaEndpointBuilder advanced() { + return (AdvancedTikaEndpointBuilder) this; + } /** * Whether the producer should be started lazy (on the first message). * By starting lazy you can use this to allow CamelContext and routes to @@ -86,51 +89,6 @@ public interface TikaEndpointBuilderFactory { return this; } /** - * Tika Config. - * - * The option is a: - * <code>org.apache.tika.config.TikaConfig</code> type. - * - * Group: producer - * - * @param tikaConfig the value to set - * @return the dsl builder - */ - default TikaEndpointBuilder tikaConfig( - org.apache.tika.config.TikaConfig tikaConfig) { - doSetProperty("tikaConfig", tikaConfig); - return this; - } - /** - * Tika Config. - * - * The option will be converted to a - * <code>org.apache.tika.config.TikaConfig</code> type. - * - * Group: producer - * - * @param tikaConfig the value to set - * @return the dsl builder - */ - default TikaEndpointBuilder tikaConfig(String tikaConfig) { - doSetProperty("tikaConfig", tikaConfig); - return this; - } - /** - * Tika Config Url. - * - * The option is a: <code>java.lang.String</code> type. - * - * Group: producer - * - * @param tikaConfigUri the value to set - * @return the dsl builder - */ - default TikaEndpointBuilder tikaConfigUri(String tikaConfigUri) { - doSetProperty("tikaConfigUri", tikaConfigUri); - return this; - } - /** * Tika Parse Output Encoding. * * The option is a: <code>java.lang.String</code> type. @@ -187,6 +145,62 @@ public interface TikaEndpointBuilderFactory { } } + /** + * Advanced builder for endpoint for the Tika component. + */ + public interface AdvancedTikaEndpointBuilder + extends + EndpointProducerBuilder { + default TikaEndpointBuilder basic() { + return (TikaEndpointBuilder) this; + } + /** + * Tika Config. + * + * The option is a: + * <code>org.apache.tika.config.TikaConfig</code> type. + * + * Group: advanced + * + * @param tikaConfig the value to set + * @return the dsl builder + */ + default AdvancedTikaEndpointBuilder tikaConfig( + org.apache.tika.config.TikaConfig tikaConfig) { + doSetProperty("tikaConfig", tikaConfig); + return this; + } + /** + * Tika Config. + * + * The option will be converted to a + * <code>org.apache.tika.config.TikaConfig</code> type. + * + * Group: advanced + * + * @param tikaConfig the value to set + * @return the dsl builder + */ + default AdvancedTikaEndpointBuilder tikaConfig(String tikaConfig) { + doSetProperty("tikaConfig", tikaConfig); + return this; + } + /** + * Tika Config Url. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: advanced + * + * @param tikaConfigUri the value to set + * @return the dsl builder + */ + default AdvancedTikaEndpointBuilder tikaConfigUri(String tikaConfigUri) { + doSetProperty("tikaConfigUri", tikaConfigUri); + return this; + } + } + public interface TikaBuilders { /** * Tika (camel-tika) @@ -232,7 +246,7 @@ public interface TikaEndpointBuilderFactory { } } static TikaEndpointBuilder endpointBuilder(String componentName, String path) { - class TikaEndpointBuilderImpl extends AbstractEndpointBuilder implements TikaEndpointBuilder { + class TikaEndpointBuilderImpl extends AbstractEndpointBuilder implements TikaEndpointBuilder, AdvancedTikaEndpointBuilder { public TikaEndpointBuilderImpl(String path) { super(componentName, path); }