Interface DoclingEndpointBuilderFactory.DoclingEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
DoclingEndpointBuilderFactory
public static interface DoclingEndpointBuilderFactory.DoclingEndpointBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint for the Docling component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()apiKeyHeader(String apiKeyHeader) Header name for API key authentication.authenticationScheme(String authenticationScheme) Authentication scheme (BEARER, API_KEY, NONE).authenticationScheme(org.apache.camel.component.docling.AuthenticationScheme authenticationScheme) Authentication scheme (BEARER, API_KEY, NONE).authenticationToken(String authenticationToken) Authentication token for docling-serve API (Bearer token or API key).batchFailOnFirstError(boolean batchFailOnFirstError) Fail entire batch on first error (true) or continue processing remaining documents (false).batchFailOnFirstError(String batchFailOnFirstError) Fail entire batch on first error (true) or continue processing remaining documents (false).batchParallelism(int batchParallelism) Number of parallel threads for batch processing.batchParallelism(String batchParallelism) Number of parallel threads for batch processing.batchSize(int batchSize) Maximum number of documents to process in a single batch (batch operations only).Maximum number of documents to process in a single batch (batch operations only).batchTimeout(long batchTimeout) Maximum time to wait for batch completion in milliseconds.batchTimeout(String batchTimeout) Maximum time to wait for batch completion in milliseconds.contentInBody(boolean contentInBody) Include the content of the output file in the exchange body and delete the output file.contentInBody(String contentInBody) Include the content of the output file in the exchange body and delete the output file.doclingServeUrl(String doclingServeUrl) Docling-serve API URL (e.g., http://localhost:5001).enableOCR(boolean enableOCR) Enable OCR processing for scanned documents.Enable OCR processing for scanned documents.includeLayoutInfo(boolean includeLayoutInfo) Show layout information with bounding boxes.includeLayoutInfo(String includeLayoutInfo) Show layout information with bounding boxes.includeMetadataInHeaders(boolean includeMetadataInHeaders) Include metadata in message headers when extracting metadata.includeMetadataInHeaders(String includeMetadataInHeaders) Include metadata in message headers when extracting metadata.includeRawMetadata(boolean includeRawMetadata) Include raw metadata as returned by the parser.includeRawMetadata(String includeRawMetadata) Include raw metadata as returned by the parser.maxFileSize(long maxFileSize) Maximum file size in bytes for processing.maxFileSize(String maxFileSize) Maximum file size in bytes for processing.ocrLanguage(String ocrLanguage) Language code for OCR processing.The operation to perform.operation(org.apache.camel.component.docling.DoclingOperations operation) The operation to perform.outputFormat(String outputFormat) Output format for document conversion.splitBatchResults(boolean splitBatchResults) Split batch results into individual exchanges (one per document) instead of single BatchProcessingResults.splitBatchResults(String splitBatchResults) Split batch results into individual exchanges (one per document) instead of single BatchProcessingResults.useDoclingServe(boolean useDoclingServe) Use docling-serve API instead of CLI command.useDoclingServe(String useDoclingServe) Use docling-serve API instead of CLI command.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
contentInBody
Include the content of the output file in the exchange body and delete the output file. The option is a:booleantype. Default: false Group: producer- Parameters:
contentInBody- the value to set- Returns:
- the dsl builder
-
contentInBody
Include the content of the output file in the exchange body and delete the output file. The option will be converted to abooleantype. Default: false Group: producer- Parameters:
contentInBody- the value to set- Returns:
- the dsl builder
-
doclingServeUrl
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder doclingServeUrl(String doclingServeUrl) Docling-serve API URL (e.g., http://localhost:5001). The option is a:java.lang.Stringtype. Default: http://localhost:5001 Group: producer- Parameters:
doclingServeUrl- the value to set- Returns:
- the dsl builder
-
enableOCR
Enable OCR processing for scanned documents. The option is a:booleantype. Default: true Group: producer- Parameters:
enableOCR- the value to set- Returns:
- the dsl builder
-
enableOCR
Enable OCR processing for scanned documents. The option will be converted to abooleantype. Default: true Group: producer- Parameters:
enableOCR- the value to set- Returns:
- the dsl builder
-
includeLayoutInfo
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder includeLayoutInfo(boolean includeLayoutInfo) Show layout information with bounding boxes. The option is a:booleantype. Default: false Group: producer- Parameters:
includeLayoutInfo- the value to set- Returns:
- the dsl builder
-
includeLayoutInfo
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder includeLayoutInfo(String includeLayoutInfo) Show layout information with bounding boxes. The option will be converted to abooleantype. Default: false Group: producer- Parameters:
includeLayoutInfo- the value to set- Returns:
- the dsl builder
-
ocrLanguage
Language code for OCR processing. The option is a:java.lang.Stringtype. Default: en Group: producer- Parameters:
ocrLanguage- the value to set- Returns:
- the dsl builder
-
operation
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder operation(org.apache.camel.component.docling.DoclingOperations operation) The operation to perform. The option is a:org.apache.camel.component.docling.DoclingOperationstype. Required: true Default: CONVERT_TO_MARKDOWN Group: producer- Parameters:
operation- the value to set- Returns:
- the dsl builder
-
operation
The operation to perform. The option will be converted to aorg.apache.camel.component.docling.DoclingOperationstype. Required: true Default: CONVERT_TO_MARKDOWN Group: producer- Parameters:
operation- the value to set- Returns:
- the dsl builder
-
outputFormat
Output format for document conversion. The option is a:java.lang.Stringtype. Default: markdown Group: producer- Parameters:
outputFormat- the value to set- Returns:
- the dsl builder
-
useDoclingServe
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder useDoclingServe(boolean useDoclingServe) Use docling-serve API instead of CLI command. The option is a:booleantype. Default: false Group: producer- Parameters:
useDoclingServe- the value to set- Returns:
- the dsl builder
-
useDoclingServe
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder useDoclingServe(String useDoclingServe) Use docling-serve API instead of CLI command. The option will be converted to abooleantype. Default: false Group: producer- Parameters:
useDoclingServe- the value to set- Returns:
- the dsl builder
-
batchFailOnFirstError
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder batchFailOnFirstError(boolean batchFailOnFirstError) Fail entire batch on first error (true) or continue processing remaining documents (false). The option is a:booleantype. Default: true Group: batch- Parameters:
batchFailOnFirstError- the value to set- Returns:
- the dsl builder
-
batchFailOnFirstError
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder batchFailOnFirstError(String batchFailOnFirstError) Fail entire batch on first error (true) or continue processing remaining documents (false). The option will be converted to abooleantype. Default: true Group: batch- Parameters:
batchFailOnFirstError- the value to set- Returns:
- the dsl builder
-
batchParallelism
Number of parallel threads for batch processing. The option is a:inttype. Default: 4 Group: batch- Parameters:
batchParallelism- the value to set- Returns:
- the dsl builder
-
batchParallelism
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder batchParallelism(String batchParallelism) Number of parallel threads for batch processing. The option will be converted to ainttype. Default: 4 Group: batch- Parameters:
batchParallelism- the value to set- Returns:
- the dsl builder
-
batchSize
Maximum number of documents to process in a single batch (batch operations only). The option is a:inttype. Default: 10 Group: batch- Parameters:
batchSize- the value to set- Returns:
- the dsl builder
-
batchSize
Maximum number of documents to process in a single batch (batch operations only). The option will be converted to ainttype. Default: 10 Group: batch- Parameters:
batchSize- the value to set- Returns:
- the dsl builder
-
batchTimeout
Maximum time to wait for batch completion in milliseconds. The option is a:longtype. Default: 300000 Group: batch- Parameters:
batchTimeout- the value to set- Returns:
- the dsl builder
-
batchTimeout
Maximum time to wait for batch completion in milliseconds. The option will be converted to alongtype. Default: 300000 Group: batch- Parameters:
batchTimeout- the value to set- Returns:
- the dsl builder
-
splitBatchResults
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder splitBatchResults(boolean splitBatchResults) Split batch results into individual exchanges (one per document) instead of single BatchProcessingResults. The option is a:booleantype. Default: false Group: batch- Parameters:
splitBatchResults- the value to set- Returns:
- the dsl builder
-
splitBatchResults
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder splitBatchResults(String splitBatchResults) Split batch results into individual exchanges (one per document) instead of single BatchProcessingResults. The option will be converted to abooleantype. Default: false Group: batch- Parameters:
splitBatchResults- the value to set- Returns:
- the dsl builder
-
includeMetadataInHeaders
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder includeMetadataInHeaders(boolean includeMetadataInHeaders) Include metadata in message headers when extracting metadata. The option is a:booleantype. Default: true Group: metadata- Parameters:
includeMetadataInHeaders- the value to set- Returns:
- the dsl builder
-
includeMetadataInHeaders
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder includeMetadataInHeaders(String includeMetadataInHeaders) Include metadata in message headers when extracting metadata. The option will be converted to abooleantype. Default: true Group: metadata- Parameters:
includeMetadataInHeaders- the value to set- Returns:
- the dsl builder
-
includeRawMetadata
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder includeRawMetadata(boolean includeRawMetadata) Include raw metadata as returned by the parser. The option is a:booleantype. Default: false Group: metadata- Parameters:
includeRawMetadata- the value to set- Returns:
- the dsl builder
-
includeRawMetadata
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder includeRawMetadata(String includeRawMetadata) Include raw metadata as returned by the parser. The option will be converted to abooleantype. Default: false Group: metadata- Parameters:
includeRawMetadata- the value to set- Returns:
- the dsl builder
-
apiKeyHeader
Header name for API key authentication. The option is a:java.lang.Stringtype. Default: X-API-Key Group: security- Parameters:
apiKeyHeader- the value to set- Returns:
- the dsl builder
-
authenticationScheme
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder authenticationScheme(org.apache.camel.component.docling.AuthenticationScheme authenticationScheme) Authentication scheme (BEARER, API_KEY, NONE). The option is a:org.apache.camel.component.docling.AuthenticationSchemetype. Default: NONE Group: security- Parameters:
authenticationScheme- the value to set- Returns:
- the dsl builder
-
authenticationScheme
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder authenticationScheme(String authenticationScheme) Authentication scheme (BEARER, API_KEY, NONE). The option will be converted to aorg.apache.camel.component.docling.AuthenticationSchemetype. Default: NONE Group: security- Parameters:
authenticationScheme- the value to set- Returns:
- the dsl builder
-
authenticationToken
default DoclingEndpointBuilderFactory.DoclingEndpointBuilder authenticationToken(String authenticationToken) Authentication token for docling-serve API (Bearer token or API key). The option is a:java.lang.Stringtype. Group: security- Parameters:
authenticationToken- the value to set- Returns:
- the dsl builder
-
maxFileSize
Maximum file size in bytes for processing. The option is a:longtype. Default: 52428800 Group: security- Parameters:
maxFileSize- the value to set- Returns:
- the dsl builder
-
maxFileSize
Maximum file size in bytes for processing. The option will be converted to alongtype. Default: 52428800 Group: security- Parameters:
maxFileSize- the value to set- Returns:
- the dsl builder
-