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-spring-boot.git
The following commit(s) were added to refs/heads/main by this push:
new 0639c51127f Regen
0639c51127f is described below
commit 0639c51127fdf9c47c9a606e592be57d022e8343
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Oct 24 13:18:18 2025 +0200
Regen
---
.../springboot/catalog/components/docling.json | 41 ++++++++++----
.../src/main/docs/docling.json | 35 ++++++++++++
.../springboot/DoclingComponentConfiguration.java | 63 ++++++++++++++++++++++
3 files changed, 128 insertions(+), 11 deletions(-)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/docling.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/docling.json
index 93008a98843..8c1fafe8292 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/docling.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/docling.json
@@ -31,7 +31,7 @@
"includeLayoutInfo": { "index": 4, "kind": "property", "displayName":
"Include Layout Info", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Show layout information
with bounding boxes" },
"lazyStartProducer": { "index": 5, "kind": "property", "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 [...]
"ocrLanguage": { "index": 6, "kind": "property", "displayName": "Ocr
Language", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
"en", "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Language code for OCR
processing" },
- "operation": { "index": 7, "kind": "property", "displayName": "Operation",
"group": "producer", "label": "", "required": true, "type": "enum", "javaType":
"org.apache.camel.component.docling.DoclingOperations", "enum": [
"CONVERT_TO_MARKDOWN", "CONVERT_TO_HTML", "CONVERT_TO_JSON", "EXTRACT_TEXT",
"EXTRACT_STRUCTURED_DATA", "SUBMIT_ASYNC_CONVERSION", "CHECK_CONVERSION_STATUS"
], "deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "defaultValue": "CONVERT_T [...]
+ "operation": { "index": 7, "kind": "property", "displayName": "Operation",
"group": "producer", "label": "", "required": true, "type": "enum", "javaType":
"org.apache.camel.component.docling.DoclingOperations", "enum": [
"CONVERT_TO_MARKDOWN", "CONVERT_TO_HTML", "CONVERT_TO_JSON", "EXTRACT_TEXT",
"EXTRACT_STRUCTURED_DATA", "SUBMIT_ASYNC_CONVERSION",
"CHECK_CONVERSION_STATUS", "BATCH_CONVERT_TO_MARKDOWN",
"BATCH_CONVERT_TO_HTML", "BATCH_CONVERT_TO_JSON", "BATCH_EXTRACT_TEXT",
"BATCH_E [...]
"outputFormat": { "index": 8, "kind": "property", "displayName": "Output
Format", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": "markdown",
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Output format for
document conversion" },
"useDoclingServe": { "index": 9, "kind": "property", "displayName": "Use
Docling Serve", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Use docling-serve API
instead of CLI command" },
"apiTimeout": { "index": 10, "kind": "property", "displayName": "Api
Timeout", "group": "advanced", "label": "advanced", "required": false, "type":
"integer", "javaType": "long", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": 60000,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "API request timeout in
milliseconds" },
@@ -52,10 +52,15 @@
"useAsyncMode": { "index": 25, "kind": "property", "displayName": "Use
Async Mode", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Use asynchronous
conversion mode (docling-serve API only)" },
"validateAfterInactivity": { "index": 26, "kind": "property",
"displayName": "Validate After Inactivity", "group": "advanced", "label":
"advanced", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "defaultValue": 2000, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Validate connections
after inactivity in mil [...]
"workingDirectory": { "index": 27, "kind": "property", "displayName":
"Working Directory", "group": "advanced", "label": "advanced", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Working directory for
Docling execution" },
- "apiKeyHeader": { "index": 28, "kind": "property", "displayName": "Api Key
Header", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
"X-API-Key", "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Header name for API key
authentication" },
- "authenticationScheme": { "index": 29, "kind": "property", "displayName":
"Authentication Scheme", "group": "security", "label": "security", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.docling.AuthenticationScheme", "enum": [ "NONE",
"BEARER", "API_KEY" ], "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "NONE", "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration", "configuration [...]
- "authenticationToken": { "index": 30, "kind": "property", "displayName":
"Authentication Token", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": true,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Authentication token for
docling-serve API (Bearer token or API [...]
- "maxFileSize": { "index": 31, "kind": "property", "displayName": "Max File
Size", "group": "security", "label": "security", "required": false, "type":
"integer", "javaType": "long", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": 52428800,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Maximum file size in
bytes for processing" }
+ "batchFailOnFirstError": { "index": 28, "kind": "property", "displayName":
"Batch Fail On First Error", "group": "batch", "label": "batch", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
true, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Fail entire batch on
first error (true) or conti [...]
+ "batchParallelism": { "index": 29, "kind": "property", "displayName":
"Batch Parallelism", "group": "batch", "label": "batch", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "deprecationNote":
"", "autowired": false, "secret": false, "defaultValue": 4,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Number of parallel
threads for batch processing" },
+ "batchSize": { "index": 30, "kind": "property", "displayName": "Batch
Size", "group": "batch", "label": "batch", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": 10, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Maximum number of
documents to process in a single batch (batch operations only)" },
+ "batchTimeout": { "index": 31, "kind": "property", "displayName": "Batch
Timeout", "group": "batch", "label": "batch", "required": false, "type":
"integer", "javaType": "long", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": 300000,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Maximum time to wait for
batch completion in milliseconds" },
+ "splitBatchResults": { "index": 32, "kind": "property", "displayName":
"Split Batch Results", "group": "batch", "label": "batch", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Split batch results into
individual exchanges (one per do [...]
+ "apiKeyHeader": { "index": 33, "kind": "property", "displayName": "Api Key
Header", "group": "security", "label": "security", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
"X-API-Key", "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Header name for API key
authentication" },
+ "authenticationScheme": { "index": 34, "kind": "property", "displayName":
"Authentication Scheme", "group": "security", "label": "security", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.docling.AuthenticationScheme", "enum": [ "NONE",
"BEARER", "API_KEY" ], "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "NONE", "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration", "configuration [...]
+ "authenticationToken": { "index": 35, "kind": "property", "displayName":
"Authentication Token", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": true,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Authentication token for
docling-serve API (Bearer token or API [...]
+ "maxFileSize": { "index": 36, "kind": "property", "displayName": "Max File
Size", "group": "security", "label": "security", "required": false, "type":
"integer", "javaType": "long", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": 52428800,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Maximum file size in
bytes for processing" }
},
"headers": {
"CamelDoclingOperation": { "index": 0, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType":
"DoclingOperations", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "The operation to perform",
"constantName": "org.apache.camel.component.docling.DoclingHeaders#OPERATION" },
@@ -69,7 +74,16 @@
"CamelDoclingUseAsyncMode": { "index": 8, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "Boolean",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Use asynchronous conversion mode (overrides endpoint
configuration)", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#USE_ASYNC_MODE" },
"CamelDoclingAsyncPollInterval": { "index": 9, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Polling interval for async conversion
status in milliseconds", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#ASYNC_POLL_INTERVAL" },
"CamelDoclingAsyncTimeout": { "index": 10, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Maximum time to wait for async
conversion completion in milliseconds", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#ASYNC_TIMEOUT" },
- "CamelDoclingTaskId": { "index": 11, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Task ID for checking async conversion status",
"constantName": "org.apache.camel.component.docling.DoclingHeaders#TASK_ID" }
+ "CamelDoclingTaskId": { "index": 11, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Task ID for checking async conversion status",
"constantName": "org.apache.camel.component.docling.DoclingHeaders#TASK_ID" },
+ "CamelDoclingBatchSize": { "index": 12, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "description": "Override batch size for this operation", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#BATCH_SIZE" },
+ "CamelDoclingBatchParallelism": { "index": 13, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Override batch parallelism for this
operation", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#BATCH_PARALLELISM" },
+ "CamelDoclingBatchFailOnFirstError": { "index": 14, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Override batch fail on first error
setting for this operation", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#BATCH_FAIL_ON_FIRST_ERROR" },
+ "CamelDoclingBatchTimeout": { "index": 15, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Override batch timeout for this
operation in milliseconds", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#BATCH_TIMEOUT" },
+ "CamelDoclingBatchTotalDocuments": { "index": 16, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Total number of documents in the
batch", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#BATCH_TOTAL_DOCUMENTS" },
+ "CamelDoclingBatchSuccessCount": { "index": 17, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Number of successfully processed
documents in the batch", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#BATCH_SUCCESS_COUNT" },
+ "CamelDoclingBatchFailureCount": { "index": 18, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Number of failed documents in the
batch", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#BATCH_FAILURE_COUNT" },
+ "CamelDoclingBatchProcessingTime": { "index": 19, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Total processing time for the batch in
milliseconds", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#BATCH_PROCESSING_TIME" },
+ "CamelDoclingBatchSplitResults": { "index": 20, "kind": "header",
"displayName": "", "group": "producer", "label": "", "required": false,
"javaType": "Boolean", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "description": "Split batch results into individual
exchanges instead of single BatchProcessingResults", "constantName":
"org.apache.camel.component.docling.DoclingHeaders#BATCH_SPLIT_RESULTS" }
},
"properties": {
"operationId": { "index": 0, "kind": "path", "displayName": "Operation
Id", "group": "producer", "label": "", "required": true, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "description": "The operation identifier"
},
@@ -78,7 +92,7 @@
"enableOCR": { "index": 3, "kind": "parameter", "displayName": "Enable
OCR", "group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Enable OCR processing
for scanned documents" },
"includeLayoutInfo": { "index": 4, "kind": "parameter", "displayName":
"Include Layout Info", "group": "producer", "label": "", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Show layout information
with bounding boxes" },
"ocrLanguage": { "index": 5, "kind": "parameter", "displayName": "Ocr
Language", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
"en", "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Language code for OCR
processing" },
- "operation": { "index": 6, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "", "required": true, "type":
"enum", "javaType": "org.apache.camel.component.docling.DoclingOperations",
"enum": [ "CONVERT_TO_MARKDOWN", "CONVERT_TO_HTML", "CONVERT_TO_JSON",
"EXTRACT_TEXT", "EXTRACT_STRUCTURED_DATA", "SUBMIT_ASYNC_CONVERSION",
"CHECK_CONVERSION_STATUS" ], "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": "CONVERT_ [...]
+ "operation": { "index": 6, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "", "required": true, "type":
"enum", "javaType": "org.apache.camel.component.docling.DoclingOperations",
"enum": [ "CONVERT_TO_MARKDOWN", "CONVERT_TO_HTML", "CONVERT_TO_JSON",
"EXTRACT_TEXT", "EXTRACT_STRUCTURED_DATA", "SUBMIT_ASYNC_CONVERSION",
"CHECK_CONVERSION_STATUS", "BATCH_CONVERT_TO_MARKDOWN",
"BATCH_CONVERT_TO_HTML", "BATCH_CONVERT_TO_JSON", "BATCH_EXTRACT_TEXT", "BATCH_
[...]
"outputFormat": { "index": 7, "kind": "parameter", "displayName": "Output
Format", "group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": "markdown",
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Output format for
document conversion" },
"useDoclingServe": { "index": 8, "kind": "parameter", "displayName": "Use
Docling Serve", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": false,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Use docling-serve API
instead of CLI command" },
"lazyStartProducer": { "index": 9, "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 produc [...]
@@ -99,9 +113,14 @@
"useAsyncMode": { "index": 24, "kind": "parameter", "displayName": "Use
Async Mode", "group": "advanced", "label": "advanced", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Use asynchronous
conversion mode (docling-serve API only)" },
"validateAfterInactivity": { "index": 25, "kind": "parameter",
"displayName": "Validate After Inactivity", "group": "advanced", "label":
"advanced", "required": false, "type": "integer", "javaType": "int",
"deprecated": false, "deprecationNote": "", "autowired": false, "secret":
false, "defaultValue": 2000, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Validate connections
after inactivity in mi [...]
"workingDirectory": { "index": 26, "kind": "parameter", "displayName":
"Working Directory", "group": "advanced", "label": "advanced", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Working directory for
Docling execution" },
- "apiKeyHeader": { "index": 27, "kind": "parameter", "displayName": "Api
Key Header", "group": "security", "label": "security", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
"X-API-Key", "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Header name for API key
authentication" },
- "authenticationScheme": { "index": 28, "kind": "parameter", "displayName":
"Authentication Scheme", "group": "security", "label": "security", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.docling.AuthenticationScheme", "enum": [ "NONE",
"BEARER", "API_KEY" ], "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "NONE", "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration", "configuratio [...]
- "authenticationToken": { "index": 29, "kind": "parameter", "displayName":
"Authentication Token", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": true,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Authentication token for
docling-serve API (Bearer token or API [...]
- "maxFileSize": { "index": 30, "kind": "parameter", "displayName": "Max
File Size", "group": "security", "label": "security", "required": false,
"type": "integer", "javaType": "long", "deprecated": false, "deprecationNote":
"", "autowired": false, "secret": false, "defaultValue": 52428800,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Maximum file size in
bytes for processing" }
+ "batchFailOnFirstError": { "index": 27, "kind": "parameter",
"displayName": "Batch Fail On First Error", "group": "batch", "label": "batch",
"required": false, "type": "boolean", "javaType": "boolean", "deprecated":
false, "deprecationNote": "", "autowired": false, "secret": false,
"defaultValue": true, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Fail entire batch on
first error (true) or cont [...]
+ "batchParallelism": { "index": 28, "kind": "parameter", "displayName":
"Batch Parallelism", "group": "batch", "label": "batch", "required": false,
"type": "integer", "javaType": "int", "deprecated": false, "deprecationNote":
"", "autowired": false, "secret": false, "defaultValue": 4,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Number of parallel
threads for batch processing" },
+ "batchSize": { "index": 29, "kind": "parameter", "displayName": "Batch
Size", "group": "batch", "label": "batch", "required": false, "type":
"integer", "javaType": "int", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": 10, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Maximum number of
documents to process in a single batch (batch operations only)" },
+ "batchTimeout": { "index": 30, "kind": "parameter", "displayName": "Batch
Timeout", "group": "batch", "label": "batch", "required": false, "type":
"integer", "javaType": "long", "deprecated": false, "deprecationNote": "",
"autowired": false, "secret": false, "defaultValue": 300000,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Maximum time to wait for
batch completion in milliseconds" },
+ "splitBatchResults": { "index": 31, "kind": "parameter", "displayName":
"Split Batch Results", "group": "batch", "label": "batch", "required": false,
"type": "boolean", "javaType": "boolean", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
false, "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Split batch results into
individual exchanges (one per d [...]
+ "apiKeyHeader": { "index": 32, "kind": "parameter", "displayName": "Api
Key Header", "group": "security", "label": "security", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": false, "defaultValue":
"X-API-Key", "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Header name for API key
authentication" },
+ "authenticationScheme": { "index": 33, "kind": "parameter", "displayName":
"Authentication Scheme", "group": "security", "label": "security", "required":
false, "type": "enum", "javaType":
"org.apache.camel.component.docling.AuthenticationScheme", "enum": [ "NONE",
"BEARER", "API_KEY" ], "deprecated": false, "deprecationNote": "", "autowired":
false, "secret": false, "defaultValue": "NONE", "configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration", "configuratio [...]
+ "authenticationToken": { "index": 34, "kind": "parameter", "displayName":
"Authentication Token", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"deprecationNote": "", "autowired": false, "secret": true,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Authentication token for
docling-serve API (Bearer token or API [...]
+ "maxFileSize": { "index": 35, "kind": "parameter", "displayName": "Max
File Size", "group": "security", "label": "security", "required": false,
"type": "integer", "javaType": "long", "deprecated": false, "deprecationNote":
"", "autowired": false, "secret": false, "defaultValue": 52428800,
"configurationClass":
"org.apache.camel.component.docling.DoclingConfiguration",
"configurationField": "configuration", "description": "Maximum file size in
bytes for processing" }
}
}
diff --git
a/components-starter/camel-docling-starter/src/main/docs/docling.json
b/components-starter/camel-docling-starter/src/main/docs/docling.json
index 4f601c59f95..13f76ce8b69 100644
--- a/components-starter/camel-docling-starter/src/main/docs/docling.json
+++ b/components-starter/camel-docling-starter/src/main/docs/docling.json
@@ -61,6 +61,34 @@
"sourceType":
"org.apache.camel.component.docling.springboot.DoclingComponentConfiguration",
"defaultValue": true
},
+ {
+ "name": "camel.component.docling.batch-fail-on-first-error",
+ "type": "java.lang.Boolean",
+ "description": "Fail entire batch on first error (true) or continue
processing remaining documents (false)",
+ "sourceType":
"org.apache.camel.component.docling.springboot.DoclingComponentConfiguration",
+ "defaultValue": true
+ },
+ {
+ "name": "camel.component.docling.batch-parallelism",
+ "type": "java.lang.Integer",
+ "description": "Number of parallel threads for batch processing",
+ "sourceType":
"org.apache.camel.component.docling.springboot.DoclingComponentConfiguration",
+ "defaultValue": 4
+ },
+ {
+ "name": "camel.component.docling.batch-size",
+ "type": "java.lang.Integer",
+ "description": "Maximum number of documents to process in a single batch
(batch operations only)",
+ "sourceType":
"org.apache.camel.component.docling.springboot.DoclingComponentConfiguration",
+ "defaultValue": 10
+ },
+ {
+ "name": "camel.component.docling.batch-timeout",
+ "type": "java.lang.Long",
+ "description": "Maximum time to wait for batch completion in
milliseconds",
+ "sourceType":
"org.apache.camel.component.docling.springboot.DoclingComponentConfiguration",
+ "defaultValue": 300000
+ },
{
"name": "camel.component.docling.configuration",
"type": "org.apache.camel.component.docling.DoclingConfiguration",
@@ -217,6 +245,13 @@
"sourceType":
"org.apache.camel.component.docling.springboot.DoclingComponentConfiguration",
"defaultValue": 60000
},
+ {
+ "name": "camel.component.docling.split-batch-results",
+ "type": "java.lang.Boolean",
+ "description": "Split batch results into individual exchanges (one per
document) instead of single BatchProcessingResults",
+ "sourceType":
"org.apache.camel.component.docling.springboot.DoclingComponentConfiguration",
+ "defaultValue": false
+ },
{
"name": "camel.component.docling.use-async-mode",
"type": "java.lang.Boolean",
diff --git
a/components-starter/camel-docling-starter/src/main/java/org/apache/camel/component/docling/springboot/DoclingComponentConfiguration.java
b/components-starter/camel-docling-starter/src/main/java/org/apache/camel/component/docling/springboot/DoclingComponentConfiguration.java
index 43921756c5c..2875a72f26e 100644
---
a/components-starter/camel-docling-starter/src/main/java/org/apache/camel/component/docling/springboot/DoclingComponentConfiguration.java
+++
b/components-starter/camel-docling-starter/src/main/java/org/apache/camel/component/docling/springboot/DoclingComponentConfiguration.java
@@ -165,6 +165,29 @@ public class DoclingComponentConfiguration
* Working directory for Docling execution
*/
private String workingDirectory;
+ /**
+ * Fail entire batch on first error (true) or continue processing remaining
+ * documents (false)
+ */
+ private Boolean batchFailOnFirstError = true;
+ /**
+ * Number of parallel threads for batch processing
+ */
+ private Integer batchParallelism = 4;
+ /**
+ * Maximum number of documents to process in a single batch (batch
+ * operations only)
+ */
+ private Integer batchSize = 10;
+ /**
+ * Maximum time to wait for batch completion in milliseconds
+ */
+ private Long batchTimeout = 300000L;
+ /**
+ * Split batch results into individual exchanges (one per document) instead
+ * of single BatchProcessingResults
+ */
+ private Boolean splitBatchResults = false;
/**
* Header name for API key authentication
*/
@@ -406,6 +429,46 @@ public class DoclingComponentConfiguration
this.workingDirectory = workingDirectory;
}
+ public Boolean getBatchFailOnFirstError() {
+ return batchFailOnFirstError;
+ }
+
+ public void setBatchFailOnFirstError(Boolean batchFailOnFirstError) {
+ this.batchFailOnFirstError = batchFailOnFirstError;
+ }
+
+ public Integer getBatchParallelism() {
+ return batchParallelism;
+ }
+
+ public void setBatchParallelism(Integer batchParallelism) {
+ this.batchParallelism = batchParallelism;
+ }
+
+ public Integer getBatchSize() {
+ return batchSize;
+ }
+
+ public void setBatchSize(Integer batchSize) {
+ this.batchSize = batchSize;
+ }
+
+ public Long getBatchTimeout() {
+ return batchTimeout;
+ }
+
+ public void setBatchTimeout(Long batchTimeout) {
+ this.batchTimeout = batchTimeout;
+ }
+
+ public Boolean getSplitBatchResults() {
+ return splitBatchResults;
+ }
+
+ public void setSplitBatchResults(Boolean splitBatchResults) {
+ this.splitBatchResults = splitBatchResults;
+ }
+
public String getApiKeyHeader() {
return apiKeyHeader;
}