Package com.consol.citrus.ftp.client
Class SftpClientBuilder
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointBuilder<SftpClient>
-
- com.consol.citrus.ftp.client.SftpClientBuilder
-
- All Implemented Interfaces:
com.consol.citrus.endpoint.EndpointBuilder<SftpClient>
public class SftpClientBuilder extends com.consol.citrus.endpoint.AbstractEndpointBuilder<SftpClient>
- Since:
- 2.7.5
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description SftpClientBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SftpClientBuilderautoReadFiles(boolean autoReadFiles)Sets the auto read files property.SftpClientBuildercorrelator(com.consol.citrus.message.MessageCorrelator correlator)Sets the message correlator.SftpClientBuildererrorHandlingStrategy(com.consol.citrus.message.ErrorHandlingStrategy errorStrategy)Sets the error handling strategy.protected SftpClientgetEndpoint()SftpClientBuilderhost(String host)Sets the host property.SftpClientBuilderknownHosts(String knownHosts)Sets the knownHosts property.SftpClientBuilderlocalPassiveMode(boolean localPassiveMode)Sets the local passive mode property.SftpClientBuilderpassword(String password)Sets the client password.SftpClientBuilderpollingInterval(int pollingInterval)Sets the polling interval.SftpClientBuilderport(int port)Sets the port property.SftpClientBuilderpreferredAuthentications(String preferredAuthentications)Sets the preferred authentications property.SftpClientBuilderprivateKeyPassword(String privateKeyPassword)Sets the privateKeyPassword property.SftpClientBuilderprivateKeyPath(String privateKeyPath)Sets the privateKeyPath property.SftpClientBuildersessionConfigs(Map<String,String> sessionConfigs)Sets the sessionConfigs property.SftpClientBuilderstrictHostChecking(boolean strictHostChecking)Sets the strictHostChecking property.SftpClientBuildertimeout(long timeout)Sets the default timeout.SftpClientBuilderusername(String username)Sets the client username.-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpointBuilder
actor, build, initialize, name, referenceResolver, supports
-
-
-
-
Method Detail
-
getEndpoint
protected SftpClient getEndpoint()
- Specified by:
getEndpointin classcom.consol.citrus.endpoint.AbstractEndpointBuilder<SftpClient>
-
host
public SftpClientBuilder host(String host)
Sets the host property.- Parameters:
host-- Returns:
-
port
public SftpClientBuilder port(int port)
Sets the port property.- Parameters:
port-- Returns:
-
autoReadFiles
public SftpClientBuilder autoReadFiles(boolean autoReadFiles)
Sets the auto read files property.- Parameters:
autoReadFiles-- Returns:
-
localPassiveMode
public SftpClientBuilder localPassiveMode(boolean localPassiveMode)
Sets the local passive mode property.- Parameters:
localPassiveMode-- Returns:
-
username
public SftpClientBuilder username(String username)
Sets the client username.- Parameters:
username-- Returns:
-
password
public SftpClientBuilder password(String password)
Sets the client password.- Parameters:
password-- Returns:
-
privateKeyPath
public SftpClientBuilder privateKeyPath(String privateKeyPath)
Sets the privateKeyPath property.- Parameters:
privateKeyPath-- Returns:
-
privateKeyPassword
public SftpClientBuilder privateKeyPassword(String privateKeyPassword)
Sets the privateKeyPassword property.- Parameters:
privateKeyPassword-- Returns:
-
strictHostChecking
public SftpClientBuilder strictHostChecking(boolean strictHostChecking)
Sets the strictHostChecking property.- Parameters:
strictHostChecking-- Returns:
-
knownHosts
public SftpClientBuilder knownHosts(String knownHosts)
Sets the knownHosts property.- Parameters:
knownHosts-- Returns:
-
preferredAuthentications
public SftpClientBuilder preferredAuthentications(String preferredAuthentications)
Sets the preferred authentications property.- Parameters:
preferredAuthentications-- Returns:
-
sessionConfigs
public SftpClientBuilder sessionConfigs(Map<String,String> sessionConfigs)
Sets the sessionConfigs property.- Parameters:
sessionConfigs-- Returns:
-
correlator
public SftpClientBuilder correlator(com.consol.citrus.message.MessageCorrelator correlator)
Sets the message correlator.- Parameters:
correlator-- Returns:
-
errorHandlingStrategy
public SftpClientBuilder errorHandlingStrategy(com.consol.citrus.message.ErrorHandlingStrategy errorStrategy)
Sets the error handling strategy.- Parameters:
errorStrategy-- Returns:
-
pollingInterval
public SftpClientBuilder pollingInterval(int pollingInterval)
Sets the polling interval.- Parameters:
pollingInterval-- Returns:
-
timeout
public SftpClientBuilder timeout(long timeout)
Sets the default timeout.- Parameters:
timeout-- Returns:
-
-