From 40564ae574cf34a22e2578465a0bd58138c6ce71 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Wed, 11 Mar 2026 14:33:47 +0000 Subject: [PATCH] Add component definition: tika --- component.json | 135 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 component.json diff --git a/component.json b/component.json new file mode 100644 index 0000000..e9b233a --- /dev/null +++ b/component.json @@ -0,0 +1,135 @@ +{ + "component": { + "kind": "component", + "name": "tika", + "title": "Tika", + "description": "Parse documents and extract metadata and text using Apache Tika.", + "deprecated": false, + "firstVersion": "2.19.0", + "label": "document,transformation", + "javaType": "org.apache.camel.component.tika.TikaComponent", + "supportLevel": "Stable", + "groupId": "org.apache.camel", + "artifactId": "camel-tika", + "version": "4.10.2", + "scheme": "tika", + "extendsScheme": "", + "syntax": "tika:operation", + "async": false, + "api": false, + "consumerOnly": false, + "producerOnly": true, + "lenientProperties": false, + "browsable": false, + "remote": false + }, + "properties": { + "operation": { + "index": 0, + "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" + }, + "tikaParseOutputEncoding": { + "index": 1, + "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": { + "index": 2, + "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", + "description": "Tika Output Format. Supported output formats. xml: Returns Parsed Content as XML. html: Returns Parsed Content as HTML. text: Returns Parsed Content as Text. textMain: Uses the boilerpipe library to automatically extract the main content from a web page." + }, + "lazyStartProducer": { + "index": 3, + "kind": "parameter", + "displayName": "Lazy Start Producer", + "group": "producer (advanced)", + "label": "producer,advanced", + "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 starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing." + }, + "tikaConfig": { + "index": 4, + "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": { + "index": 5, + "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" + } + } +} \ No newline at end of file