Package com.consol.citrus.ftp.client
Class FtpClientBuilder
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointBuilder<FtpClient>
-
- com.consol.citrus.ftp.client.FtpClientBuilder
-
-
Constructor Summary
Constructors Constructor Description FtpClientBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FtpClientBuilderautoReadFiles(boolean autoReadFiles)Sets the auto read files property.FtpClientBuildercorrelator(com.consol.citrus.message.MessageCorrelator correlator)Sets the message correlator.FtpClientBuildererrorHandlingStrategy(com.consol.citrus.message.ErrorHandlingStrategy errorStrategy)Sets the error handling strategy.protected FtpClientgetEndpoint()FtpClientBuilderhost(String host)Sets the host property.FtpClientBuilderlocalPassiveMode(boolean localPassiveMode)Sets the local passive mode property.FtpClientBuilderpassword(String password)Sets the client password.FtpClientBuilderpollingInterval(int pollingInterval)Sets the polling interval.FtpClientBuilderport(int port)Sets the port property.FtpClientBuildertimeout(long timeout)Sets the default timeout.FtpClientBuilderusername(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 FtpClient getEndpoint()
- Specified by:
getEndpointin classcom.consol.citrus.endpoint.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(com.consol.citrus.message.MessageCorrelator correlator)
Sets the message correlator.- Parameters:
correlator-- Returns:
-
errorHandlingStrategy
public FtpClientBuilder errorHandlingStrategy(com.consol.citrus.message.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:
-
-