Class FtpClientBuilder

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

public class FtpClientBuilder extends AbstractEndpointBuilder<FtpClient>
Since:
2.5
Author:
Christoph Deppisch
  • Constructor Details

    • FtpClientBuilder

      public FtpClientBuilder()
  • Method Details

    • getEndpoint

      protected FtpClient getEndpoint()
      Specified by:
      getEndpoint in class AbstractEndpointBuilder<FtpClient>
    • host

      public FtpClientBuilder host(String host)
      Sets the host property.
      Parameters:
      host -
      Returns:
    • port

      public FtpClientBuilder port(int port)
      Sets the port property.
      Parameters:
      port -
      Returns:
    • autoReadFiles

      public FtpClientBuilder autoReadFiles(boolean autoReadFiles)
      Sets the auto read files property.
      Parameters:
      autoReadFiles -
      Returns:
    • localPassiveMode

      public FtpClientBuilder localPassiveMode(boolean localPassiveMode)
      Sets the local passive mode property.
      Parameters:
      localPassiveMode -
      Returns:
    • username

      public FtpClientBuilder username(String username)
      Sets the client username.
      Parameters:
      username -
      Returns:
    • password

      public FtpClientBuilder password(String password)
      Sets the client password.
      Parameters:
      password -
      Returns:
    • correlator

      public FtpClientBuilder correlator(MessageCorrelator correlator)
      Sets the message correlator.
      Parameters:
      correlator -
      Returns:
    • errorHandlingStrategy

      public FtpClientBuilder errorHandlingStrategy(ErrorHandlingStrategy errorStrategy)
      Sets the error handling strategy.
      Parameters:
      errorStrategy -
      Returns:
    • pollingInterval

      public FtpClientBuilder pollingInterval(int pollingInterval)
      Sets the polling interval.
      Parameters:
      pollingInterval -
      Returns:
    • timeout

      public FtpClientBuilder timeout(long timeout)
      Sets the default timeout.
      Parameters:
      timeout -
      Returns: