Package com.consol.citrus.ftp.client
Class ScpClientBuilder
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointBuilder<ScpClient>
-
- com.consol.citrus.ftp.client.ScpClientBuilder
-
-
Constructor Summary
Constructors Constructor Description ScpClientBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ScpClientBuilderautoReadFiles(boolean autoReadFiles)Deprecated.received files are always read automatically making this flag obsoleteScpClientBuildercorrelator(com.consol.citrus.message.MessageCorrelator correlator)Sets the message correlator.ScpClientBuildererrorHandlingStrategy(com.consol.citrus.message.ErrorHandlingStrategy errorStrategy)Sets the error handling strategy.protected ScpClientgetEndpoint()ScpClientBuilderhost(String host)Sets the host property.ScpClientBuilderknownHosts(String knownHosts)Sets the knownHosts property.ScpClientBuilderpassword(String password)Sets the client password.ScpClientBuilderpollingInterval(int pollingInterval)Sets the polling interval.ScpClientBuilderport(int port)Sets the port property.ScpClientBuilderportOption(String option)Sets the port option property.ScpClientBuilderprivateKeyPassword(String privateKeyPassword)Sets the privateKeyPassword property.ScpClientBuilderprivateKeyPath(String privateKeyPath)Sets the privateKeyPath property.ScpClientBuilderstrictHostChecking(boolean strictHostChecking)Sets the strictHostChecking property.ScpClientBuildertimeout(long timeout)Sets the default timeout.ScpClientBuilderusername(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 ScpClient getEndpoint()
- Specified by:
getEndpointin classcom.consol.citrus.endpoint.AbstractEndpointBuilder<ScpClient>
-
portOption
public ScpClientBuilder portOption(String option)
Sets the port option property.- Parameters:
option-- Returns:
-
host
public ScpClientBuilder host(String host)
Sets the host property.- Parameters:
host-- Returns:
-
port
public ScpClientBuilder port(int port)
Sets the port property.- Parameters:
port-- Returns:
-
autoReadFiles
@Deprecated public ScpClientBuilder autoReadFiles(boolean autoReadFiles)
Deprecated.received files are always read automatically making this flag obsoleteSets the auto read files property.- Parameters:
autoReadFiles-- Returns:
-
username
public ScpClientBuilder username(String username)
Sets the client username.- Parameters:
username-- Returns:
-
password
public ScpClientBuilder password(String password)
Sets the client password.- Parameters:
password-- Returns:
-
privateKeyPath
public ScpClientBuilder privateKeyPath(String privateKeyPath)
Sets the privateKeyPath property.- Parameters:
privateKeyPath-- Returns:
-
privateKeyPassword
public ScpClientBuilder privateKeyPassword(String privateKeyPassword)
Sets the privateKeyPassword property.- Parameters:
privateKeyPassword-- Returns:
-
strictHostChecking
public ScpClientBuilder strictHostChecking(boolean strictHostChecking)
Sets the strictHostChecking property.- Parameters:
strictHostChecking-- Returns:
-
knownHosts
public ScpClientBuilder knownHosts(String knownHosts)
Sets the knownHosts property.- Parameters:
knownHosts-- Returns:
-
correlator
public ScpClientBuilder correlator(com.consol.citrus.message.MessageCorrelator correlator)
Sets the message correlator.- Parameters:
correlator-- Returns:
-
errorHandlingStrategy
public ScpClientBuilder errorHandlingStrategy(com.consol.citrus.message.ErrorHandlingStrategy errorStrategy)
Sets the error handling strategy.- Parameters:
errorStrategy-- Returns:
-
pollingInterval
public ScpClientBuilder pollingInterval(int pollingInterval)
Sets the polling interval.- Parameters:
pollingInterval-- Returns:
-
timeout
public ScpClientBuilder timeout(long timeout)
Sets the default timeout.- Parameters:
timeout-- Returns:
-
-