How to use getEndpoint method of com.consol.citrus.ssh.client.SshClientBuilder class

Best Citrus code snippet using com.consol.citrus.ssh.client.SshClientBuilder.getEndpoint

Source:SshClientBuilder.java Github

copy

Full Screen

...24public class SshClientBuilder extends AbstractEndpointBuilder<SshClient> {25 /** Endpoint target */26 private SshClient endpoint = new SshClient();27 @Override28 protected SshClient getEndpoint() {29 return endpoint;30 }31 /**32 * Sets the host property.33 * @param host34 * @return35 */36 public SshClientBuilder host(String host) {37 endpoint.getEndpointConfiguration().setHost(host);38 return this;39 }40 /**41 * Sets the port property.42 * @param port43 * @return44 */45 public SshClientBuilder port(int port) {46 endpoint.getEndpointConfiguration().setPort(port);47 return this;48 }49 /**50 * Sets the user property.51 * @param user52 * @return53 */54 public SshClientBuilder user(String user) {55 endpoint.getEndpointConfiguration().setUser(user);56 return this;57 }58 /**59 * Sets the client password.60 * @param password61 * @return62 */63 public SshClientBuilder password(String password) {64 endpoint.getEndpointConfiguration().setPassword(password);65 return this;66 }67 /**68 * Sets the privateKeyPath property.69 * @param privateKeyPath70 * @return71 */72 public SshClientBuilder privateKeyPath(String privateKeyPath) {73 endpoint.getEndpointConfiguration().setPrivateKeyPath(privateKeyPath);74 return this;75 }76 /**77 * Sets the privateKeyPassword property.78 * @param privateKeyPassword79 * @return80 */81 public SshClientBuilder privateKeyPassword(String privateKeyPassword) {82 endpoint.getEndpointConfiguration().setPrivateKeyPassword(privateKeyPassword);83 return this;84 }85 /**86 * Sets the strictHostChecking property.87 * @param strictHostChecking88 * @return89 */90 public SshClientBuilder strictHostChecking(boolean strictHostChecking) {91 endpoint.getEndpointConfiguration().setStrictHostChecking(strictHostChecking);92 return this;93 }94 /**95 * Sets the knownHosts property.96 * @param knownHosts97 * @return98 */99 public SshClientBuilder knownHosts(String knownHosts) {100 endpoint.getEndpointConfiguration().setKnownHosts(knownHosts);101 return this;102 }103 /**104 * Sets the commandTimeout property.105 * @param commandTimeout106 * @return107 */108 public SshClientBuilder commandTimeout(long commandTimeout) {109 endpoint.getEndpointConfiguration().setCommandTimeout(commandTimeout);110 return this;111 }112 /**113 * Sets the connectionTimeout property.114 * @param connectionTimeout115 * @return116 */117 public SshClientBuilder connectionTimeout(int connectionTimeout) {118 endpoint.getEndpointConfiguration().setConnectionTimeout(connectionTimeout);119 return this;120 }121 /**122 * Sets the message converter.123 * @param messageConverter124 * @return125 */126 public SshClientBuilder messageConverter(SshMessageConverter messageConverter) {127 endpoint.getEndpointConfiguration().setMessageConverter(messageConverter);128 return this;129 }130 /**131 * Sets the message correlator.132 * @param correlator133 * @return134 */135 public SshClientBuilder correlator(MessageCorrelator correlator) {136 endpoint.getEndpointConfiguration().setCorrelator(correlator);137 return this;138 }139 /**140 * Sets the polling interval.141 * @param pollingInterval142 * @return143 */144 public SshClientBuilder pollingInterval(int pollingInterval) {145 endpoint.getEndpointConfiguration().setPollingInterval(pollingInterval);146 return this;147 }148 /**149 * Sets the default timeout.150 * @param timeout151 * @return152 */153 public SshClientBuilder timeout(long timeout) {154 endpoint.getEndpointConfiguration().setTimeout(timeout);155 return this;156 }157}...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Citrus automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful