Class SftpClientBuilder

java.lang.Object
org.citrusframework.endpoint.AbstractEndpointBuilder<SftpClient>
org.citrusframework.ftp.client.SftpClientBuilder
All Implemented Interfaces:
EndpointBuilder<SftpClient>

public class SftpClientBuilder extends AbstractEndpointBuilder<SftpClient>
Since:
2.7.5
Author:
Christoph Deppisch
  • Constructor Details

    • SftpClientBuilder

      public SftpClientBuilder()
  • Method Details

    • getEndpoint

      protected SftpClient getEndpoint()
      Specified by:
      getEndpoint in class 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(MessageCorrelator correlator)
      Sets the message correlator.
      Parameters:
      correlator -
      Returns:
    • errorHandlingStrategy

      public SftpClientBuilder errorHandlingStrategy(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: