Interface DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
DoclingEndpointBuilderFactory
public static interface DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Advanced builder for endpoint for the Docling component.
-
Method Summary
Modifier and TypeMethodDescriptionabortOnError(Boolean abortOnError) Abort processing on error.abortOnError(String abortOnError) Abort processing on error.asyncPollInterval(long asyncPollInterval) Polling interval for async conversion status in milliseconds.asyncPollInterval(String asyncPollInterval) Polling interval for async conversion status in milliseconds.asyncTimeout(long asyncTimeout) Maximum time to wait for async conversion completion in milliseconds.asyncTimeout(String asyncTimeout) Maximum time to wait for async conversion completion in milliseconds.basic()doclingCommand(String doclingCommand) Path to Docling Python executable or command.doCodeEnrichment(Boolean doCodeEnrichment) Enable code enrichment in document processing.doCodeEnrichment(String doCodeEnrichment) Enable code enrichment in document processing.documentTimeout(Long documentTimeout) Document processing timeout in seconds.documentTimeout(String documentTimeout) Document processing timeout in seconds.doFormulaEnrichment(Boolean doFormulaEnrichment) Enable formula enrichment in document processing.doFormulaEnrichment(String doFormulaEnrichment) Enable formula enrichment in document processing.Enable OCR processing in docling-serve API mode.Enable OCR processing in docling-serve API mode.doPictureClassification(Boolean doPictureClassification) Enable picture classification in document processing.doPictureClassification(String doPictureClassification) Enable picture classification in document processing.doPictureDescription(Boolean doPictureDescription) Enable picture description generation in document processing.doPictureDescription(String doPictureDescription) Enable picture description generation in document processing.doTableStructure(Boolean doTableStructure) Enable table structure recognition.doTableStructure(String doTableStructure) Enable table structure recognition.Force OCR processing even for digital 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.imagesScale(String imagesScale) Scale factor for exported images.includeImages(Boolean includeImages) Include images in the conversion output.includeImages(String includeImages) Include images in the conversion output.lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).lazyStartProducer(String lazyStartProducer) Whether the producer should be started lazy (on the first message).mdPageBreakPlaceholder(String mdPageBreakPlaceholder) Placeholder string for page breaks in markdown output.OCR engine to use.pdfBackend(String pdfBackend) PDF parsing backend.Processing pipeline to use.processTimeout(long processTimeout) Timeout for Docling process execution in milliseconds.processTimeout(String processTimeout) Timeout for Docling process execution in milliseconds.tableCellMatching(Boolean tableCellMatching) Enable table cell matching post-processing.tableCellMatching(String tableCellMatching) Enable table cell matching post-processing.Table structure recognition mode.useAsyncMode(boolean useAsyncMode) Use asynchronous conversion mode (docling-serve API only).useAsyncMode(String useAsyncMode) Use asynchronous conversion mode (docling-serve API only).workingDirectory(String workingDirectory) Working directory for Docling execution.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
-
basic
-
lazyStartProducer
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder 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:booleantype. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder lazyStartProducer(String 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 will be converted to abooleantype. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer- the value to set- Returns:
- the dsl builder
-
abortOnError
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder abortOnError(Boolean abortOnError) Abort processing on error. The option is a:java.lang.Booleantype. Default: false Group: advanced- Parameters:
abortOnError- the value to set- Returns:
- the dsl builder
-
abortOnError
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder abortOnError(String abortOnError) Abort processing on error. The option will be converted to ajava.lang.Booleantype. Default: false Group: advanced- Parameters:
abortOnError- the value to set- Returns:
- the dsl builder
-
asyncPollInterval
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder asyncPollInterval(long asyncPollInterval) Polling interval for async conversion status in milliseconds. The option is a:longtype. Default: 2000 Group: advanced- Parameters:
asyncPollInterval- the value to set- Returns:
- the dsl builder
-
asyncPollInterval
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder asyncPollInterval(String asyncPollInterval) Polling interval for async conversion status in milliseconds. The option will be converted to alongtype. Default: 2000 Group: advanced- Parameters:
asyncPollInterval- the value to set- Returns:
- the dsl builder
-
asyncTimeout
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder asyncTimeout(long asyncTimeout) Maximum time to wait for async conversion completion in milliseconds. The option is a:longtype. Default: 300000 Group: advanced- Parameters:
asyncTimeout- the value to set- Returns:
- the dsl builder
-
asyncTimeout
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder asyncTimeout(String asyncTimeout) Maximum time to wait for async conversion completion in milliseconds. The option will be converted to alongtype. Default: 300000 Group: advanced- Parameters:
asyncTimeout- the value to set- Returns:
- the dsl builder
-
doclingCommand
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doclingCommand(String doclingCommand) Path to Docling Python executable or command. The option is a:java.lang.Stringtype. Group: advanced- Parameters:
doclingCommand- the value to set- Returns:
- the dsl builder
-
doCodeEnrichment
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doCodeEnrichment(Boolean doCodeEnrichment) Enable code enrichment in document processing. The option is a:java.lang.Booleantype. Default: false Group: advanced- Parameters:
doCodeEnrichment- the value to set- Returns:
- the dsl builder
-
doCodeEnrichment
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doCodeEnrichment(String doCodeEnrichment) Enable code enrichment in document processing. The option will be converted to ajava.lang.Booleantype. Default: false Group: advanced- Parameters:
doCodeEnrichment- the value to set- Returns:
- the dsl builder
-
documentTimeout
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder documentTimeout(Long documentTimeout) Document processing timeout in seconds. The option is a:java.lang.Longtype. Group: advanced- Parameters:
documentTimeout- the value to set- Returns:
- the dsl builder
-
documentTimeout
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder documentTimeout(String documentTimeout) Document processing timeout in seconds. The option will be converted to ajava.lang.Longtype. Group: advanced- Parameters:
documentTimeout- the value to set- Returns:
- the dsl builder
-
doFormulaEnrichment
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doFormulaEnrichment(Boolean doFormulaEnrichment) Enable formula enrichment in document processing. The option is a:java.lang.Booleantype. Default: false Group: advanced- Parameters:
doFormulaEnrichment- the value to set- Returns:
- the dsl builder
-
doFormulaEnrichment
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doFormulaEnrichment(String doFormulaEnrichment) Enable formula enrichment in document processing. The option will be converted to ajava.lang.Booleantype. 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:java.lang.Booleantype. Default: false Group: advanced- Parameters:
doOcr- 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 will be converted to ajava.lang.Booleantype. Default: false Group: advanced- Parameters:
doOcr- the value to set- Returns:
- the dsl builder
-
doPictureClassification
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doPictureClassification(Boolean doPictureClassification) Enable picture classification in document processing. The option is a:java.lang.Booleantype. Default: false Group: advanced- Parameters:
doPictureClassification- the value to set- Returns:
- the dsl builder
-
doPictureClassification
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doPictureClassification(String doPictureClassification) Enable picture classification in document processing. The option will be converted to ajava.lang.Booleantype. Default: false Group: advanced- Parameters:
doPictureClassification- the value to set- Returns:
- the dsl builder
-
doPictureDescription
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doPictureDescription(Boolean doPictureDescription) Enable picture description generation in document processing. The option is a:java.lang.Booleantype. Default: false Group: advanced- Parameters:
doPictureDescription- the value to set- Returns:
- the dsl builder
-
doPictureDescription
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doPictureDescription(String doPictureDescription) Enable picture description generation in document processing. The option will be converted to ajava.lang.Booleantype. Default: false Group: advanced- Parameters:
doPictureDescription- the value to set- Returns:
- the dsl builder
-
doTableStructure
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doTableStructure(Boolean doTableStructure) Enable table structure recognition. The option is a:java.lang.Booleantype. Default: false Group: advanced- Parameters:
doTableStructure- the value to set- Returns:
- the dsl builder
-
doTableStructure
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder doTableStructure(String doTableStructure) Enable table structure recognition. The option will be converted to ajava.lang.Booleantype. 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:java.lang.Booleantype. Default: false Group: advanced- Parameters:
forceOcr- the value to set- Returns:
- the dsl builder
-
forceOcr
Force OCR processing even for digital documents. The option will be converted to ajava.lang.Booleantype. Default: false Group: advanced- Parameters:
forceOcr- the value to set- Returns:
- the dsl builder
-
imageExportMode
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder imageExportMode(String imageExportMode) Image export mode for referenced images. The option is a:java.lang.Stringtype. Group: advanced- Parameters:
imageExportMode- the value to set- Returns:
- the dsl builder
-
imagesScale
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder imagesScale(Double imagesScale) Scale factor for exported images. The option is a:java.lang.Doubletype. Group: advanced- Parameters:
imagesScale- the value to set- Returns:
- the dsl builder
-
imagesScale
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder imagesScale(String imagesScale) Scale factor for exported images. The option will be converted to ajava.lang.Doubletype. Group: advanced- Parameters:
imagesScale- the value to set- Returns:
- the dsl builder
-
includeImages
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder includeImages(Boolean includeImages) Include images in the conversion output. The option is a:java.lang.Booleantype. Default: false Group: advanced- Parameters:
includeImages- the value to set- Returns:
- the dsl builder
-
includeImages
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder includeImages(String includeImages) Include images in the conversion output. The option will be converted to ajava.lang.Booleantype. Default: false Group: advanced- Parameters:
includeImages- the value to set- Returns:
- the dsl builder
-
mdPageBreakPlaceholder
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder mdPageBreakPlaceholder(String mdPageBreakPlaceholder) Placeholder string for page breaks in markdown output. The option is a:java.lang.Stringtype. Group: advanced- Parameters:
mdPageBreakPlaceholder- the value to set- Returns:
- the dsl builder
-
ocrEngine
OCR engine to use. The option is a:java.lang.Stringtype. Group: advanced- Parameters:
ocrEngine- the value to set- Returns:
- the dsl builder
-
pdfBackend
PDF parsing backend. The option is a:java.lang.Stringtype. Group: advanced- Parameters:
pdfBackend- the value to set- Returns:
- the dsl builder
-
pipeline
Processing pipeline to use. The option is a:java.lang.Stringtype. Group: advanced- Parameters:
pipeline- the value to set- Returns:
- the dsl builder
-
processTimeout
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder processTimeout(long processTimeout) Timeout for Docling process execution in milliseconds. The option is a:longtype. Default: 30000 Group: advanced- Parameters:
processTimeout- the value to set- Returns:
- the dsl builder
-
processTimeout
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder processTimeout(String processTimeout) Timeout for Docling process execution in milliseconds. The option will be converted to alongtype. Default: 30000 Group: advanced- Parameters:
processTimeout- the value to set- Returns:
- the dsl builder
-
tableCellMatching
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder tableCellMatching(Boolean tableCellMatching) Enable table cell matching post-processing. The option is a:java.lang.Booleantype. Default: false Group: advanced- Parameters:
tableCellMatching- the value to set- Returns:
- the dsl builder
-
tableCellMatching
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder tableCellMatching(String tableCellMatching) Enable table cell matching post-processing. The option will be converted to ajava.lang.Booleantype. Default: false Group: advanced- Parameters:
tableCellMatching- the value to set- Returns:
- the dsl builder
-
tableMode
Table structure recognition mode. The option is a:java.lang.Stringtype. Group: advanced- Parameters:
tableMode- the value to set- Returns:
- the dsl builder
-
useAsyncMode
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder useAsyncMode(boolean useAsyncMode) Use asynchronous conversion mode (docling-serve API only). The option is a:booleantype. Default: false Group: advanced- Parameters:
useAsyncMode- the value to set- Returns:
- the dsl builder
-
useAsyncMode
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder useAsyncMode(String useAsyncMode) Use asynchronous conversion mode (docling-serve API only). The option will be converted to abooleantype. Default: false Group: advanced- Parameters:
useAsyncMode- the value to set- Returns:
- the dsl builder
-
workingDirectory
default DoclingEndpointBuilderFactory.AdvancedDoclingEndpointBuilder workingDirectory(String workingDirectory) Working directory for Docling execution. The option is a:java.lang.Stringtype. Group: advanced- Parameters:
workingDirectory- the value to set- Returns:
- the dsl builder
-