Interface DoclingComponentBuilderFactory.DoclingComponentBuilder
- All Superinterfaces:
ComponentBuilder<org.apache.camel.component.docling.DoclingComponent>
- All Known Implementing Classes:
DoclingComponentBuilderFactory.DoclingComponentBuilderImpl
- Enclosing interface:
DoclingComponentBuilderFactory
public static interface DoclingComponentBuilderFactory.DoclingComponentBuilder
extends ComponentBuilder<org.apache.camel.component.docling.DoclingComponent>
Builder for the Docling component.
-
Method Summary
Modifier and TypeMethodDescriptionabortOnError(Boolean abortOnError) Abort processing on error.apiKeyHeader(String apiKeyHeader) Header name for API key authentication.asyncPollInterval(long asyncPollInterval) Polling interval for async conversion status in milliseconds.asyncTimeout(long asyncTimeout) Maximum time to wait for async conversion completion in milliseconds.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).autowiredEnabled(boolean autowiredEnabled) Whether autowiring is enabled.batchFailOnFirstError(boolean batchFailOnFirstError) Fail entire batch on first error (true) or continue processing remaining documents (false).batchParallelism(int batchParallelism) Number of parallel threads for batch processing.batchSize(int batchSize) 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.configuration(org.apache.camel.component.docling.DoclingConfiguration configuration) The configuration for the Docling Endpoint.contentInBody(boolean contentInBody) Include the content of the output file in the exchange body and delete the output file.doclingCommand(String doclingCommand) Path to Docling Python executable or command.doclingServeUrl(String doclingServeUrl) Docling-serve API URL (e.g., http://localhost:5001).doCodeEnrichment(Boolean doCodeEnrichment) Enable code enrichment in document processing.documentTimeout(Long documentTimeout) Document processing timeout in seconds.doFormulaEnrichment(Boolean doFormulaEnrichment) Enable formula enrichment in document processing.Enable OCR processing in docling-serve API mode.doPictureClassification(Boolean doPictureClassification) Enable picture classification in document processing.doPictureDescription(Boolean doPictureDescription) Enable picture description generation in document processing.doTableStructure(Boolean doTableStructure) Enable table structure recognition.enableOCR(boolean enableOCR) Enable OCR processing for scanned documents.Force OCR processing even for digital documents.imageExportMode(String imageExportMode) Image export mode for referenced images.imagesScale(Double imagesScale) Scale factor for exported images.includeImages(Boolean includeImages) Include images in the conversion output.includeLayoutInfo(boolean includeLayoutInfo) Show layout information with bounding boxes.includeMetadataInHeaders(boolean includeMetadataInHeaders) Include metadata in message headers when extracting metadata.includeRawMetadata(boolean includeRawMetadata) Include raw metadata as returned by the parser.lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).maxFileSize(long maxFileSize) Maximum file size in bytes for processing.mdPageBreakPlaceholder(String mdPageBreakPlaceholder) Placeholder string for page breaks in markdown output.OCR engine to use.ocrLanguage(String ocrLanguage) Language code for OCR processing.operation(org.apache.camel.component.docling.DoclingOperations operation) The operation to perform.outputFormat(String outputFormat) Output format for document conversion.pdfBackend(String pdfBackend) PDF parsing backend.Processing pipeline to use.processTimeout(long processTimeout) Timeout for Docling process execution in milliseconds.splitBatchResults(boolean splitBatchResults) Split batch results into individual exchanges (one per document) instead of single BatchProcessingResults.tableCellMatching(Boolean tableCellMatching) Enable table cell matching post-processing.Table structure recognition mode.useAsyncMode(boolean useAsyncMode) Use asynchronous conversion mode (docling-serve API only).useDoclingServe(boolean useDoclingServe) Use docling-serve API instead of CLI command.workingDirectory(String workingDirectory) Working directory for Docling execution.Methods inherited from interface org.apache.camel.builder.component.ComponentBuilder
build, build, doSetProperty, register
-
Method Details
-
configuration
default DoclingComponentBuilderFactory.DoclingComponentBuilder configuration(org.apache.camel.component.docling.DoclingConfiguration configuration) The configuration for the Docling Endpoint. The option is a: <code>org.apache.camel.component.docling.DoclingConfiguration</code> type. Group: producer- Parameters:
configuration- 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 is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
contentInBody- the value to set- Returns:
- the dsl builder
-
doclingServeUrl
default DoclingComponentBuilderFactory.DoclingComponentBuilder doclingServeUrl(String doclingServeUrl) Docling-serve API URL (e.g., http://localhost:5001). The option is a: <code>java.lang.String</code> type. 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: <code>boolean</code> type. Default: true Group: producer- Parameters:
enableOCR- the value to set- Returns:
- the dsl builder
-
includeLayoutInfo
default DoclingComponentBuilderFactory.DoclingComponentBuilder includeLayoutInfo(boolean includeLayoutInfo) Show layout information with bounding boxes. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
includeLayoutInfo- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default DoclingComponentBuilderFactory.DoclingComponentBuilder lazyStartProducer(boolean lazyStartProducer) 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. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
ocrLanguage
Language code for OCR processing. The option is a: <code>java.lang.String</code> type. Default: en Group: producer- Parameters:
ocrLanguage- the value to set- Returns:
- the dsl builder
-
operation
default DoclingComponentBuilderFactory.DoclingComponentBuilder operation(org.apache.camel.component.docling.DoclingOperations operation) The operation to perform. The option is a: <code>org.apache.camel.component.docling.DoclingOperations</code> type. 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: <code>java.lang.String</code> type. Default: markdown Group: producer- Parameters:
outputFormat- the value to set- Returns:
- the dsl builder
-
useDoclingServe
default DoclingComponentBuilderFactory.DoclingComponentBuilder useDoclingServe(boolean useDoclingServe) Use docling-serve API instead of CLI command. The option is a: <code>boolean</code> type. Default: false Group: producer- Parameters:
useDoclingServe- the value to set- Returns:
- the dsl builder
-
abortOnError
Abort processing on error. The option is a: <code>java.lang.Boolean</code> type. Default: false Group: advanced- Parameters:
abortOnError- the value to set- Returns:
- the dsl builder
-
asyncPollInterval
default DoclingComponentBuilderFactory.DoclingComponentBuilder asyncPollInterval(long asyncPollInterval) Polling interval for async conversion status in milliseconds. The option is a: <code>long</code> type. Default: 2000 Group: advanced- Parameters:
asyncPollInterval- the value to set- Returns:
- the dsl builder
-
asyncTimeout
Maximum time to wait for async conversion completion in milliseconds. The option is a: <code>long</code> type. Default: 300000 Group: advanced- Parameters:
asyncTimeout- the value to set- Returns:
- the dsl builder
-
autowiredEnabled
default DoclingComponentBuilderFactory.DoclingComponentBuilder autowiredEnabled(boolean autowiredEnabled) Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
autowiredEnabled- the value to set- Returns:
- the dsl builder
-
doclingCommand
default DoclingComponentBuilderFactory.DoclingComponentBuilder doclingCommand(String doclingCommand) Path to Docling Python executable or command. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
doclingCommand- the value to set- Returns:
- the dsl builder
-
doCodeEnrichment
default DoclingComponentBuilderFactory.DoclingComponentBuilder doCodeEnrichment(Boolean doCodeEnrichment) Enable code enrichment in document processing. The option is a: <code>java.lang.Boolean</code> type. Default: false Group: advanced- Parameters:
doCodeEnrichment- the value to set- Returns:
- the dsl builder
-
documentTimeout
default DoclingComponentBuilderFactory.DoclingComponentBuilder documentTimeout(Long documentTimeout) Document processing timeout in seconds. The option is a: <code>java.lang.Long</code> type. Group: advanced- Parameters:
documentTimeout- the value to set- Returns:
- the dsl builder
-
doFormulaEnrichment
default DoclingComponentBuilderFactory.DoclingComponentBuilder doFormulaEnrichment(Boolean doFormulaEnrichment) Enable formula enrichment in document processing. The option is a: <code>java.lang.Boolean</code> type. Default: false Group: advanced- Parameters:
doFormulaEnrichment- the value to set- Returns:
- the dsl builder
-
doOcr
Enable OCR processing in docling-serve API mode. When not set, the server uses its own defaults. Set enableOCR to false to explicitly disable OCR. The option is a: <code>java.lang.Boolean</code> type. Default: false Group: advanced- Parameters:
doOcr- the value to set- Returns:
- the dsl builder
-
doPictureClassification
default DoclingComponentBuilderFactory.DoclingComponentBuilder doPictureClassification(Boolean doPictureClassification) Enable picture classification in document processing. The option is a: <code>java.lang.Boolean</code> type. Default: false Group: advanced- Parameters:
doPictureClassification- the value to set- Returns:
- the dsl builder
-
doPictureDescription
default DoclingComponentBuilderFactory.DoclingComponentBuilder doPictureDescription(Boolean doPictureDescription) Enable picture description generation in document processing. The option is a: <code>java.lang.Boolean</code> type. Default: false Group: advanced- Parameters:
doPictureDescription- the value to set- Returns:
- the dsl builder
-
doTableStructure
default DoclingComponentBuilderFactory.DoclingComponentBuilder doTableStructure(Boolean doTableStructure) Enable table structure recognition. The option is a: <code>java.lang.Boolean</code> type. Default: false Group: advanced- Parameters:
doTableStructure- the value to set- Returns:
- the dsl builder
-
forceOcr
Force OCR processing even for digital documents. The option is a: <code>java.lang.Boolean</code> type. Default: false Group: advanced- Parameters:
forceOcr- the value to set- Returns:
- the dsl builder
-
imageExportMode
default DoclingComponentBuilderFactory.DoclingComponentBuilder imageExportMode(String imageExportMode) Image export mode for referenced images. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
imageExportMode- the value to set- Returns:
- the dsl builder
-
imagesScale
Scale factor for exported images. The option is a: <code>java.lang.Double</code> type. Group: advanced- Parameters:
imagesScale- the value to set- Returns:
- the dsl builder
-
includeImages
Include images in the conversion output. The option is a: <code>java.lang.Boolean</code> type. Default: false Group: advanced- Parameters:
includeImages- the value to set- Returns:
- the dsl builder
-
mdPageBreakPlaceholder
default DoclingComponentBuilderFactory.DoclingComponentBuilder mdPageBreakPlaceholder(String mdPageBreakPlaceholder) Placeholder string for page breaks in markdown output. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
mdPageBreakPlaceholder- the value to set- Returns:
- the dsl builder
-
ocrEngine
OCR engine to use. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
ocrEngine- the value to set- Returns:
- the dsl builder
-
pdfBackend
PDF parsing backend. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
pdfBackend- the value to set- Returns:
- the dsl builder
-
pipeline
Processing pipeline to use. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
pipeline- the value to set- Returns:
- the dsl builder
-
processTimeout
Timeout for Docling process execution in milliseconds. The option is a: <code>long</code> type. Default: 30000 Group: advanced- Parameters:
processTimeout- the value to set- Returns:
- the dsl builder
-
tableCellMatching
default DoclingComponentBuilderFactory.DoclingComponentBuilder tableCellMatching(Boolean tableCellMatching) Enable table cell matching post-processing. The option is a: <code>java.lang.Boolean</code> type. Default: false Group: advanced- Parameters:
tableCellMatching- the value to set- Returns:
- the dsl builder
-
tableMode
Table structure recognition mode. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
tableMode- the value to set- Returns:
- the dsl builder
-
useAsyncMode
Use asynchronous conversion mode (docling-serve API only). The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
useAsyncMode- the value to set- Returns:
- the dsl builder
-
workingDirectory
default DoclingComponentBuilderFactory.DoclingComponentBuilder workingDirectory(String workingDirectory) Working directory for Docling execution. The option is a: <code>java.lang.String</code> type. Group: advanced- Parameters:
workingDirectory- the value to set- Returns:
- the dsl builder
-
batchFailOnFirstError
default DoclingComponentBuilderFactory.DoclingComponentBuilder batchFailOnFirstError(boolean batchFailOnFirstError) Fail entire batch on first error (true) or continue processing remaining documents (false). The option is a: <code>boolean</code> type. Default: true Group: batch- Parameters:
batchFailOnFirstError- the value to set- Returns:
- the dsl builder
-
batchParallelism
default DoclingComponentBuilderFactory.DoclingComponentBuilder batchParallelism(int batchParallelism) Number of parallel threads for batch processing. The option is a: <code>int</code> type. 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: <code>int</code> type. 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: <code>long</code> type. Default: 300000 Group: batch- Parameters:
batchTimeout- the value to set- Returns:
- the dsl builder
-
splitBatchResults
default DoclingComponentBuilderFactory.DoclingComponentBuilder splitBatchResults(boolean splitBatchResults) Split batch results into individual exchanges (one per document) instead of single BatchProcessingResults. The option is a: <code>boolean</code> type. Default: false Group: batch- Parameters:
splitBatchResults- the value to set- Returns:
- the dsl builder
-
includeMetadataInHeaders
default DoclingComponentBuilderFactory.DoclingComponentBuilder includeMetadataInHeaders(boolean includeMetadataInHeaders) Include metadata in message headers when extracting metadata. The option is a: <code>boolean</code> type. Default: true Group: metadata- Parameters:
includeMetadataInHeaders- the value to set- Returns:
- the dsl builder
-
includeRawMetadata
default DoclingComponentBuilderFactory.DoclingComponentBuilder includeRawMetadata(boolean includeRawMetadata) Include raw metadata as returned by the parser. The option is a: <code>boolean</code> type. 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: <code>java.lang.String</code> type. Default: X-API-Key Group: security- Parameters:
apiKeyHeader- the value to set- Returns:
- the dsl builder
-
authenticationScheme
default DoclingComponentBuilderFactory.DoclingComponentBuilder authenticationScheme(org.apache.camel.component.docling.AuthenticationScheme authenticationScheme) Authentication scheme (BEARER, API_KEY, NONE). The option is a: <code>org.apache.camel.component.docling.AuthenticationScheme</code> type. Default: NONE Group: security- Parameters:
authenticationScheme- the value to set- Returns:
- the dsl builder
-
authenticationToken
default DoclingComponentBuilderFactory.DoclingComponentBuilder authenticationToken(String authenticationToken) Authentication token for docling-serve API (Bearer token or API key). The option is a: <code>java.lang.String</code> type. Group: security- Parameters:
authenticationToken- the value to set- Returns:
- the dsl builder
-
maxFileSize
Maximum file size in bytes for processing. The option is a: <code>long</code> type. Default: 52428800 Group: security- Parameters:
maxFileSize- the value to set- Returns:
- the dsl builder
-