Package com.consol.citrus.ssh.client
Class SshClientBuilder
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointBuilder<SshClient>
-
- com.consol.citrus.ssh.client.SshClientBuilder
-
- All Implemented Interfaces:
EndpointBuilder<SshClient>
public class SshClientBuilder extends AbstractEndpointBuilder<SshClient>
- Since:
- 2.5
- Author:
- Christoph Deppisch
-
-
Field Summary
-
Fields inherited from interface com.consol.citrus.endpoint.EndpointBuilder
LOG, RESOURCE_PATH, TYPE_RESOLVER
-
-
Constructor Summary
Constructors Constructor Description SshClientBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SshClientBuildercommandTimeout(long commandTimeout)Sets the commandTimeout property.SshClientBuilderconnectionTimeout(int connectionTimeout)Sets the connectionTimeout property.SshClientBuildercorrelator(MessageCorrelator correlator)Sets the message correlator.protected SshClientgetEndpoint()SshClientBuilderhost(String host)Sets the host property.SshClientBuilderknownHosts(String knownHosts)Sets the knownHosts property.SshClientBuildermessageConverter(SshMessageConverter messageConverter)Sets the message converter.SshClientBuilderpassword(String password)Sets the client password.SshClientBuilderpollingInterval(int pollingInterval)Sets the polling interval.SshClientBuilderport(int port)Sets the port property.SshClientBuilderprivateKeyPassword(String privateKeyPassword)Sets the privateKeyPassword property.SshClientBuilderprivateKeyPath(String privateKeyPath)Sets the privateKeyPath property.SshClientBuilderstrictHostChecking(boolean strictHostChecking)Sets the strictHostChecking property.SshClientBuildertimeout(long timeout)Sets the default timeout.SshClientBuilderuser(String user)Sets the user property.-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpointBuilder
actor, build, initialize, name, referenceResolver, supports
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.consol.citrus.endpoint.EndpointBuilder
build, build
-
-
-
-
Method Detail
-
getEndpoint
protected SshClient getEndpoint()
- Specified by:
getEndpointin classAbstractEndpointBuilder<SshClient>
-
host
public SshClientBuilder host(String host)
Sets the host property.- Parameters:
host-- Returns:
-
port
public SshClientBuilder port(int port)
Sets the port property.- Parameters:
port-- Returns:
-
user
public SshClientBuilder user(String user)
Sets the user property.- Parameters:
user-- Returns:
-
password
public SshClientBuilder password(String password)
Sets the client password.- Parameters:
password-- Returns:
-
privateKeyPath
public SshClientBuilder privateKeyPath(String privateKeyPath)
Sets the privateKeyPath property.- Parameters:
privateKeyPath-- Returns:
-
privateKeyPassword
public SshClientBuilder privateKeyPassword(String privateKeyPassword)
Sets the privateKeyPassword property.- Parameters:
privateKeyPassword-- Returns:
-
strictHostChecking
public SshClientBuilder strictHostChecking(boolean strictHostChecking)
Sets the strictHostChecking property.- Parameters:
strictHostChecking-- Returns:
-
knownHosts
public SshClientBuilder knownHosts(String knownHosts)
Sets the knownHosts property.- Parameters:
knownHosts-- Returns:
-
commandTimeout
public SshClientBuilder commandTimeout(long commandTimeout)
Sets the commandTimeout property.- Parameters:
commandTimeout-- Returns:
-
connectionTimeout
public SshClientBuilder connectionTimeout(int connectionTimeout)
Sets the connectionTimeout property.- Parameters:
connectionTimeout-- Returns:
-
messageConverter
public SshClientBuilder messageConverter(SshMessageConverter messageConverter)
Sets the message converter.- Parameters:
messageConverter-- Returns:
-
correlator
public SshClientBuilder correlator(MessageCorrelator correlator)
Sets the message correlator.- Parameters:
correlator-- Returns:
-
pollingInterval
public SshClientBuilder pollingInterval(int pollingInterval)
Sets the polling interval.- Parameters:
pollingInterval-- Returns:
-
timeout
public SshClientBuilder timeout(long timeout)
Sets the default timeout.- Parameters:
timeout-- Returns:
-
-