Class 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 Detail

      • SftpClientBuilder

        public SftpClientBuilder()
    • Method Detail

      • getEndpoint

        protected SftpClient getEndpoint()
        Specified by:
        getEndpoint in class com.consol.citrus.endpoint.AbstractEndpointBuilder<SftpClient>
      • 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: