Interface FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder
-
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,FtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder,FtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder
- Enclosing interface:
- FtpEndpointBuilderFactory
public static interface FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder extends FtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder, FtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder
Advanced builder for endpoint for the FTP component.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderactivePortRange(String activePortRange)Set the client side port range in active mode.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderautoCreate(boolean autoCreate)Automatically create missing directories in the file's pathname.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderautoCreate(String autoCreate)Automatically create missing directories in the file's pathname.default FtpEndpointBuilderFactory.FtpEndpointBuilderbasic()default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderbufferSize(int bufferSize)Buffer size in bytes used for writing files (or in case of FTP for downloading and uploading files).default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderbufferSize(String bufferSize)Buffer size in bytes used for writing files (or in case of FTP for downloading and uploading files).default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderconnectTimeout(int connectTimeout)Sets the connect timeout for waiting for a connection to be established Used by both FTPClient and JSCH.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderconnectTimeout(String connectTimeout)Sets the connect timeout for waiting for a connection to be established Used by both FTPClient and JSCH.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderfastExistsCheck(boolean fastExistsCheck)If set this option to be true, camel-ftp will use the list file directly to check if the file exists.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderfastExistsCheck(String fastExistsCheck)If set this option to be true, camel-ftp will use the list file directly to check if the file exists.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderftpClient(String ftpClient)To use a custom instance of FTPClient.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderftpClient(org.apache.commons.net.ftp.FTPClient ftpClient)To use a custom instance of FTPClient.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderftpClientConfig(String ftpClientConfig)To use a custom instance of FTPClientConfig to configure the FTP client the endpoint should use.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderftpClientConfig(org.apache.commons.net.ftp.FTPClientConfig ftpClientConfig)To use a custom instance of FTPClientConfig to configure the FTP client the endpoint should use.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderftpClientConfigParameters(String key, Object value)Used by FtpComponent to provide additional parameters for the FTPClientConfig.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderftpClientConfigParameters(Map values)Used by FtpComponent to provide additional parameters for the FTPClientConfig.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderftpClientParameters(String key, Object value)Used by FtpComponent to provide additional parameters for the FTPClient.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderftpClientParameters(Map values)Used by FtpComponent to provide additional parameters for the FTPClient.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuildermaximumReconnectAttempts(int maximumReconnectAttempts)Specifies the maximum reconnect attempts Camel performs when it tries to connect to the remote FTP server.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuildermaximumReconnectAttempts(String maximumReconnectAttempts)Specifies the maximum reconnect attempts Camel performs when it tries to connect to the remote FTP server.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderreconnectDelay(long reconnectDelay)Delay in millis Camel will wait before performing a reconnect attempt.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderreconnectDelay(String reconnectDelay)Delay in millis Camel will wait before performing a reconnect attempt.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuildersiteCommand(String siteCommand)Sets optional site command(s) to be executed after successful login.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuildersoTimeout(int soTimeout)Sets the so timeout FTP and FTPS Is the SocketOptions.SO_TIMEOUT value in millis.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuildersoTimeout(String soTimeout)Sets the so timeout FTP and FTPS Is the SocketOptions.SO_TIMEOUT value in millis.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderstepwise(boolean stepwise)Sets whether we should stepwise change directories while traversing file structures when downloading files, or as well when uploading a file to a directory.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderstepwise(String stepwise)Sets whether we should stepwise change directories while traversing file structures when downloading files, or as well when uploading a file to a directory.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderthrowExceptionOnConnectFailed(boolean throwExceptionOnConnectFailed)Should an exception be thrown if connection failed (exhausted)By default exception is not thrown and a WARN is logged.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilderthrowExceptionOnConnectFailed(String throwExceptionOnConnectFailed)Should an exception be thrown if connection failed (exhausted)By default exception is not thrown and a WARN is logged.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuildertimeout(int timeout)Sets the data timeout for waiting for reply Used only by FTPClient.default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuildertimeout(String timeout)Sets the data timeout for waiting for reply Used only by FTPClient.-
Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
-
Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.FtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder
bridgeErrorHandler, bridgeErrorHandler, download, download, exceptionHandler, exceptionHandler, exchangePattern, exchangePattern, handleDirectoryParserAbsoluteResult, handleDirectoryParserAbsoluteResult, ignoreFileNotFoundOrPermissionError, ignoreFileNotFoundOrPermissionError, inProgressRepository, inProgressRepository, localWorkDirectory, onCompletionExceptionHandler, onCompletionExceptionHandler, pollStrategy, pollStrategy, processStrategy, processStrategy, useList, useList
-
Methods inherited from interface org.apache.camel.builder.endpoint.dsl.FtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder
allowNullBody, allowNullBody, chmod, disconnectOnBatchComplete, disconnectOnBatchComplete, eagerDeleteTargetFile, eagerDeleteTargetFile, keepLastModified, keepLastModified, lazyStartProducer, lazyStartProducer, moveExistingFileStrategy, moveExistingFileStrategy, sendNoop, sendNoop
-
-
-
-
Method Detail
-
basic
default FtpEndpointBuilderFactory.FtpEndpointBuilder basic()
- Specified by:
basicin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
basicin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder
-
fastExistsCheck
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder fastExistsCheck(boolean fastExistsCheck)
If set this option to be true, camel-ftp will use the list file directly to check if the file exists. Since some FTP server may not support to list the file directly, if the option is false, camel-ftp will use the old way to list the directory and check if the file exists. This option also influences readLock=changed to control whether it performs a fast check to update file information or not. This can be used to speed up the process if the FTP server has a lot of files. The option is a: <code>boolean</code> type. Default: false Group: common (advanced)- Specified by:
fastExistsCheckin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
fastExistsCheckin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
fastExistsCheck- the value to set- Returns:
- the dsl builder
-
fastExistsCheck
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder fastExistsCheck(String fastExistsCheck)
If set this option to be true, camel-ftp will use the list file directly to check if the file exists. Since some FTP server may not support to list the file directly, if the option is false, camel-ftp will use the old way to list the directory and check if the file exists. This option also influences readLock=changed to control whether it performs a fast check to update file information or not. This can be used to speed up the process if the FTP server has a lot of files. The option will be converted to a <code>boolean</code> type. Default: false Group: common (advanced)- Specified by:
fastExistsCheckin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
fastExistsCheckin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
fastExistsCheck- the value to set- Returns:
- the dsl builder
-
activePortRange
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder activePortRange(String activePortRange)
Set the client side port range in active mode. The syntax is: minPort-maxPort Both port numbers are inclusive, eg 10000-19999 to include all 1xxxx ports. The option is a: <code>java.lang.String</code> type. Group: advanced- Specified by:
activePortRangein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
activePortRangein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
activePortRange- the value to set- Returns:
- the dsl builder
-
autoCreate
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder autoCreate(boolean 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:
autoCreatein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
autoCreatein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
autoCreate- the value to set- Returns:
- the dsl builder
-
autoCreate
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder autoCreate(String 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:
autoCreatein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
autoCreatein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
autoCreate- the value to set- Returns:
- the dsl builder
-
bufferSize
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder bufferSize(int 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:
bufferSizein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
bufferSizein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
bufferSize- the value to set- Returns:
- the dsl builder
-
bufferSize
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder bufferSize(String 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:
bufferSizein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
bufferSizein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
bufferSize- the value to set- Returns:
- the dsl builder
-
connectTimeout
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder connectTimeout(int connectTimeout)
Sets the connect timeout for waiting for a connection to be established Used by both FTPClient and JSCH. The option is a: <code>int</code> type. Default: 10000 Group: advanced- Specified by:
connectTimeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
connectTimeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
connectTimeout- the value to set- Returns:
- the dsl builder
-
connectTimeout
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder connectTimeout(String connectTimeout)
Sets the connect timeout for waiting for a connection to be established Used by both FTPClient and JSCH. The option will be converted to a <code>int</code> type. Default: 10000 Group: advanced- Specified by:
connectTimeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
connectTimeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
connectTimeout- the value to set- Returns:
- the dsl builder
-
ftpClient
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder ftpClient(org.apache.commons.net.ftp.FTPClient ftpClient)
To use a custom instance of FTPClient. The option is a: <code>org.apache.commons.net.ftp.FTPClient</code> type. Group: advanced- Specified by:
ftpClientin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
ftpClientin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
ftpClient- the value to set- Returns:
- the dsl builder
-
ftpClient
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder ftpClient(String ftpClient)
To use a custom instance of FTPClient. The option will be converted to a <code>org.apache.commons.net.ftp.FTPClient</code> type. Group: advanced- Specified by:
ftpClientin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
ftpClientin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
ftpClient- the value to set- Returns:
- the dsl builder
-
ftpClientConfig
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder ftpClientConfig(org.apache.commons.net.ftp.FTPClientConfig ftpClientConfig)
To use a custom instance of FTPClientConfig to configure the FTP client the endpoint should use. The option is a: <code>org.apache.commons.net.ftp.FTPClientConfig</code> type. Group: advanced- Specified by:
ftpClientConfigin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
ftpClientConfigin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
ftpClientConfig- the value to set- Returns:
- the dsl builder
-
ftpClientConfig
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder ftpClientConfig(String ftpClientConfig)
To use a custom instance of FTPClientConfig to configure the FTP client the endpoint should use. The option will be converted to a <code>org.apache.commons.net.ftp.FTPClientConfig</code> type. Group: advanced- Specified by:
ftpClientConfigin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
ftpClientConfigin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
ftpClientConfig- the value to set- Returns:
- the dsl builder
-
ftpClientConfigParameters
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder ftpClientConfigParameters(String key, Object value)
Used by FtpComponent to provide additional parameters for the FTPClientConfig. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the ftpClientConfigParameters(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Specified by:
ftpClientConfigParametersin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
ftpClientConfigParametersin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
key- the option keyvalue- the option value- Returns:
- the dsl builder
-
ftpClientConfigParameters
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder ftpClientConfigParameters(Map values)
Used by FtpComponent to provide additional parameters for the FTPClientConfig. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the ftpClientConfigParameters(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Specified by:
ftpClientConfigParametersin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
ftpClientConfigParametersin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
values- the values- Returns:
- the dsl builder
-
ftpClientParameters
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder ftpClientParameters(String key, Object value)
Used by FtpComponent to provide additional parameters for the FTPClient. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the ftpClientParameters(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Specified by:
ftpClientParametersin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
ftpClientParametersin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
key- the option keyvalue- the option value- Returns:
- the dsl builder
-
ftpClientParameters
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder ftpClientParameters(Map values)
Used by FtpComponent to provide additional parameters for the FTPClient. The option is a: <code>java.util.Map<java.lang.String, java.lang.Object></code> type. The option is multivalued, and you can use the ftpClientParameters(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced- Specified by:
ftpClientParametersin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
ftpClientParametersin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
values- the values- Returns:
- the dsl builder
-
maximumReconnectAttempts
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder maximumReconnectAttempts(int maximumReconnectAttempts)
Specifies the maximum reconnect attempts Camel performs when it tries to connect to the remote FTP server. Use 0 to disable this behavior. The option is a: <code>int</code> type. Group: advanced- Specified by:
maximumReconnectAttemptsin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
maximumReconnectAttemptsin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
maximumReconnectAttempts- the value to set- Returns:
- the dsl builder
-
maximumReconnectAttempts
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder maximumReconnectAttempts(String maximumReconnectAttempts)
Specifies the maximum reconnect attempts Camel performs when it tries to connect to the remote FTP server. Use 0 to disable this behavior. The option will be converted to a <code>int</code> type. Group: advanced- Specified by:
maximumReconnectAttemptsin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
maximumReconnectAttemptsin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
maximumReconnectAttempts- the value to set- Returns:
- the dsl builder
-
reconnectDelay
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder reconnectDelay(long reconnectDelay)
Delay in millis Camel will wait before performing a reconnect attempt. The option is a: <code>long</code> type. Default: 1000 Group: advanced- Specified by:
reconnectDelayin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
reconnectDelayin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
reconnectDelay- the value to set- Returns:
- the dsl builder
-
reconnectDelay
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder reconnectDelay(String reconnectDelay)
Delay in millis Camel will wait before performing a reconnect attempt. The option will be converted to a <code>long</code> type. Default: 1000 Group: advanced- Specified by:
reconnectDelayin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
reconnectDelayin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
reconnectDelay- the value to set- Returns:
- the dsl builder
-
siteCommand
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder siteCommand(String siteCommand)
Sets optional site command(s) to be executed after successful login. Multiple site commands can be separated using a new line character. The option is a: <code>java.lang.String</code> type. Group: advanced- Specified by:
siteCommandin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
siteCommandin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
siteCommand- the value to set- Returns:
- the dsl builder
-
soTimeout
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder soTimeout(int soTimeout)
Sets the so timeout FTP and FTPS Is the SocketOptions.SO_TIMEOUT value in millis. Recommended option is to set this to 300000 so as not have a hanged connection. On SFTP this option is set as timeout on the JSCH Session instance. The option is a: <code>int</code> type. Default: 300000 Group: advanced- Specified by:
soTimeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
soTimeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
soTimeout- the value to set- Returns:
- the dsl builder
-
soTimeout
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder soTimeout(String soTimeout)
Sets the so timeout FTP and FTPS Is the SocketOptions.SO_TIMEOUT value in millis. Recommended option is to set this to 300000 so as not have a hanged connection. On SFTP this option is set as timeout on the JSCH Session instance. The option will be converted to a <code>int</code> type. Default: 300000 Group: advanced- Specified by:
soTimeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
soTimeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
soTimeout- the value to set- Returns:
- the dsl builder
-
stepwise
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder stepwise(boolean stepwise)
Sets whether we should stepwise change directories while traversing file structures when downloading files, or as well when uploading a file to a directory. You can disable this if you for example are in a situation where you cannot change directory on the FTP server due security reasons. Stepwise cannot be used together with streamDownload. The option is a: <code>boolean</code> type. Default: true Group: advanced- Specified by:
stepwisein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
stepwisein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
stepwise- the value to set- Returns:
- the dsl builder
-
stepwise
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder stepwise(String stepwise)
Sets whether we should stepwise change directories while traversing file structures when downloading files, or as well when uploading a file to a directory. You can disable this if you for example are in a situation where you cannot change directory on the FTP server due security reasons. Stepwise cannot be used together with streamDownload. The option will be converted to a <code>boolean</code> type. Default: true Group: advanced- Specified by:
stepwisein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
stepwisein interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
stepwise- the value to set- Returns:
- the dsl builder
-
throwExceptionOnConnectFailed
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder throwExceptionOnConnectFailed(boolean throwExceptionOnConnectFailed)
Should an exception be thrown if connection failed (exhausted)By default exception is not thrown and a WARN is logged. You can use this to enable exception being thrown and handle the thrown exception from the org.apache.camel.spi.PollingConsumerPollStrategy rollback method. The option is a: <code>boolean</code> type. Default: false Group: advanced- Specified by:
throwExceptionOnConnectFailedin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
throwExceptionOnConnectFailedin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
throwExceptionOnConnectFailed- the value to set- Returns:
- the dsl builder
-
throwExceptionOnConnectFailed
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder throwExceptionOnConnectFailed(String throwExceptionOnConnectFailed)
Should an exception be thrown if connection failed (exhausted)By default exception is not thrown and a WARN is logged. You can use this to enable exception being thrown and handle the thrown exception from the org.apache.camel.spi.PollingConsumerPollStrategy rollback method. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Specified by:
throwExceptionOnConnectFailedin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
throwExceptionOnConnectFailedin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
throwExceptionOnConnectFailed- the value to set- Returns:
- the dsl builder
-
timeout
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder timeout(int timeout)
Sets the data timeout for waiting for reply Used only by FTPClient. The option is a: <code>int</code> type. Default: 30000 Group: advanced- Specified by:
timeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
timeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
timeout- the value to set- Returns:
- the dsl builder
-
timeout
default FtpEndpointBuilderFactory.AdvancedFtpEndpointBuilder timeout(String timeout)
Sets the data timeout for waiting for reply Used only by FTPClient. The option will be converted to a <code>int</code> type. Default: 30000 Group: advanced- Specified by:
timeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointConsumerBuilder- Specified by:
timeoutin interfaceFtpEndpointBuilderFactory.AdvancedFtpEndpointProducerBuilder- Parameters:
timeout- the value to set- Returns:
- the dsl builder
-
-