Interface FileEndpointBuilderFactory.AdvancedFileEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder
,org.apache.camel.EndpointConsumerResolver
,org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
,FileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
,FileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Enclosing interface:
- FileEndpointBuilderFactory
public static interface FileEndpointBuilderFactory.AdvancedFileEndpointBuilder
extends FileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder, FileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
Advanced builder for endpoint for the File component.
-
Method Summary
Modifier and TypeMethodDescriptionautoCreate
(boolean autoCreate) Automatically create missing directories in the file's pathname.autoCreate
(String autoCreate) Automatically create missing directories in the file's pathname.basic()
bufferSize
(int bufferSize) Buffer size in bytes used for writing files (or in case of FTP for downloading and uploading files).bufferSize
(String bufferSize) Buffer size in bytes used for writing files (or in case of FTP for downloading and uploading files).copyAndDeleteOnRenameFail
(boolean copyAndDeleteOnRenameFail) Whether to fallback and do a copy and delete file, in case the file could not be renamed directly.copyAndDeleteOnRenameFail
(String copyAndDeleteOnRenameFail) Whether to fallback and do a copy and delete file, in case the file could not be renamed directly.renameUsingCopy
(boolean renameUsingCopy) Perform rename operations using a copy and delete strategy.renameUsingCopy
(String renameUsingCopy) Perform rename operations using a copy and delete strategy.synchronous
(boolean synchronous) Sets whether synchronous processing should be strictly used.synchronous
(String synchronous) Sets whether synchronous processing should be strictly used.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.FileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
bridgeErrorHandler, bridgeErrorHandler, directoryMustExist, directoryMustExist, exceptionHandler, exceptionHandler, exchangePattern, exchangePattern, extendedAttributes, includeHiddenFiles, includeHiddenFiles, inProgressRepository, inProgressRepository, localWorkDirectory, onCompletionExceptionHandler, onCompletionExceptionHandler, pollStrategy, pollStrategy, probeContentType, probeContentType, processStrategy, processStrategy, startingDirectoryMustExist, startingDirectoryMustExist, startingDirectoryMustHaveAccess, startingDirectoryMustHaveAccess
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.FileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
allowNullBody, allowNullBody, chmod, chmodDirectory, eagerDeleteTargetFile, eagerDeleteTargetFile, forceWrites, forceWrites, keepLastModified, keepLastModified, lazyStartProducer, lazyStartProducer, moveExistingFileStrategy, moveExistingFileStrategy
-
Method Details
-
basic
- Specified by:
basic
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
basic
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
-
autoCreate
Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. The option is a: <code>boolean</code> type. Default: true Group: advanced- Specified by:
autoCreate
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
autoCreate
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Parameters:
autoCreate
- the value to set- Returns:
- the dsl builder
-
autoCreate
Automatically create missing directories in the file's pathname. For the file consumer, that means creating the starting directory. For the file producer, it means the directory the files should be written to. The option will be converted to a <code>boolean</code> type. Default: true Group: advanced- Specified by:
autoCreate
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
autoCreate
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Parameters:
autoCreate
- the value to set- Returns:
- the dsl builder
-
bufferSize
Buffer size in bytes used for writing files (or in case of FTP for downloading and uploading files). The option is a: <code>int</code> type. Default: 131072 Group: advanced- Specified by:
bufferSize
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
bufferSize
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Parameters:
bufferSize
- the value to set- Returns:
- the dsl builder
-
bufferSize
Buffer size in bytes used for writing files (or in case of FTP for downloading and uploading files). The option will be converted to a <code>int</code> type. Default: 131072 Group: advanced- Specified by:
bufferSize
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
bufferSize
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Parameters:
bufferSize
- the value to set- Returns:
- the dsl builder
-
copyAndDeleteOnRenameFail
default FileEndpointBuilderFactory.AdvancedFileEndpointBuilder copyAndDeleteOnRenameFail(boolean copyAndDeleteOnRenameFail) Whether to fallback and do a copy and delete file, in case the file could not be renamed directly. This option is not available for the FTP component. The option is a: <code>boolean</code> type. Default: true Group: advanced- Specified by:
copyAndDeleteOnRenameFail
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
copyAndDeleteOnRenameFail
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Parameters:
copyAndDeleteOnRenameFail
- the value to set- Returns:
- the dsl builder
-
copyAndDeleteOnRenameFail
default FileEndpointBuilderFactory.AdvancedFileEndpointBuilder copyAndDeleteOnRenameFail(String copyAndDeleteOnRenameFail) Whether to fallback and do a copy and delete file, in case the file could not be renamed directly. This option is not available for the FTP component. The option will be converted to a <code>boolean</code> type. Default: true Group: advanced- Specified by:
copyAndDeleteOnRenameFail
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
copyAndDeleteOnRenameFail
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Parameters:
copyAndDeleteOnRenameFail
- the value to set- Returns:
- the dsl builder
-
renameUsingCopy
default FileEndpointBuilderFactory.AdvancedFileEndpointBuilder renameUsingCopy(boolean renameUsingCopy) Perform rename operations using a copy and delete strategy. This is primarily used in environments where the regular rename operation is unreliable (e.g. across different file systems or networks). This option takes precedence over the copyAndDeleteOnRenameFail parameter that will automatically fall back to the copy and delete strategy, but only after additional delays. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
renameUsingCopy
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
renameUsingCopy
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Parameters:
renameUsingCopy
- the value to set- Returns:
- the dsl builder
-
renameUsingCopy
default FileEndpointBuilderFactory.AdvancedFileEndpointBuilder renameUsingCopy(String renameUsingCopy) Perform rename operations using a copy and delete strategy. This is primarily used in environments where the regular rename operation is unreliable (e.g. across different file systems or networks). This option takes precedence over the copyAndDeleteOnRenameFail parameter that will automatically fall back to the copy and delete strategy, but only after additional delays. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
renameUsingCopy
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
renameUsingCopy
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Parameters:
renameUsingCopy
- the value to set- Returns:
- the dsl builder
-
synchronous
Sets whether synchronous processing should be strictly used. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
synchronous
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
synchronous
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Parameters:
synchronous
- the value to set- Returns:
- the dsl builder
-
synchronous
Sets whether synchronous processing should be strictly used. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
synchronous
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointConsumerBuilder
- Specified by:
synchronous
in interfaceFileEndpointBuilderFactory.AdvancedFileEndpointProducerBuilder
- Parameters:
synchronous
- the value to set- Returns:
- the dsl builder
-