Class SshClientModel
java.lang.Object
org.citrusframework.model.config.ssh.SshClientModel
Java-Klasse für anonymous complex type.
Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
<attribute name="host" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="port" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="private-key-path" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="private-key-password" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="user" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="password" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="strict-host-checking" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="known-hosts-path" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="command-timeout" type="{http://www.w3.org/2001/XMLSchema}int" />
<attribute name="connection-timeout" type="{http://www.w3.org/2001/XMLSchema}int" />
<attribute name="actor" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="message-correlator" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="message-converter" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="timeout" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="polling-interval" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringActor used for switching groups of actions.protected IntegerTimeout in milliseconds for how long to wait for the SSH command to complete.protected IntegerTimeout in milliseconds for how long to for a connectiuon to connect.protected StringHost to connect to for sending an SSH Exec request.protected Stringprotected StringPath to a known hosts file.protected Stringprotected Stringprotected StringPassword used for password based authentication.protected Stringprotected StringPort to use.protected StringOptional password for the private keyprotected StringPath to a private key, which can be either a plain file path or an class resource if prefixed with 'classpath:'protected BooleanWhether the host key should be verified by looking it up in a 'known_hosts' file.protected Stringprotected StringUser used for connecting to the SSH server. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActor()Actor used for switching groups of actions.Timeout in milliseconds for how long to wait for the SSH command to complete.Timeout in milliseconds for how long to for a connectiuon to connect.getHost()Host to connect to for sending an SSH Exec request.getId()Ruft den Wert der id-Eigenschaft ab.Path to a known hosts file.Ruft den Wert der messageConverter-Eigenschaft ab.Ruft den Wert der messageCorrelator-Eigenschaft ab.Password used for password based authentication.Ruft den Wert der pollingInterval-Eigenschaft ab.getPort()Port to use.Optional password for the private keyPath to a private key, which can be either a plain file path or an class resource if prefixed with 'classpath:'Ruft den Wert der timeout-Eigenschaft ab.getUser()User used for connecting to the SSH server.Whether the host key should be verified by looking it up in a 'known_hosts' file.voidLegt den Wert der actor-Eigenschaft fest.voidsetCommandTimeout(Integer value) Legt den Wert der commandTimeout-Eigenschaft fest.voidsetConnectionTimeout(Integer value) Legt den Wert der connectionTimeout-Eigenschaft fest.voidLegt den Wert der host-Eigenschaft fest.voidLegt den Wert der id-Eigenschaft fest.voidsetKnownHostsPath(String value) Legt den Wert der knownHostsPath-Eigenschaft fest.voidsetMessageConverter(String value) Legt den Wert der messageConverter-Eigenschaft fest.voidsetMessageCorrelator(String value) Legt den Wert der messageCorrelator-Eigenschaft fest.voidsetPassword(String value) Legt den Wert der password-Eigenschaft fest.voidsetPollingInterval(String value) Legt den Wert der pollingInterval-Eigenschaft fest.voidLegt den Wert der port-Eigenschaft fest.voidsetPrivateKeyPassword(String value) Legt den Wert der privateKeyPassword-Eigenschaft fest.voidsetPrivateKeyPath(String value) Legt den Wert der privateKeyPath-Eigenschaft fest.voidsetStrictHostChecking(Boolean value) Legt den Wert der strictHostChecking-Eigenschaft fest.voidsetTimeout(String value) Legt den Wert der timeout-Eigenschaft fest.voidLegt den Wert der user-Eigenschaft fest.
-
Field Details
-
id
-
host
Host to connect to for sending an SSH Exec request. Default is 'localhost' -
port
Port to use. Default is 2222 -
privateKeyPath
Path to a private key, which can be either a plain file path or an class resource if prefixed with 'classpath:' -
privateKeyPassword
Optional password for the private key -
user
User used for connecting to the SSH server. -
password
Password used for password based authentication. Might be combined with "private-key-path" in which case both authentication mechanism are tried. -
strictHostChecking
Whether the host key should be verified by looking it up in a 'known_hosts' file. Default is false. -
knownHostsPath
Path to a known hosts file. If prefixed with 'classpath:' this file is looked up as a resource in the classpath. -
commandTimeout
Timeout in milliseconds for how long to wait for the SSH command to complete. Default is 5 minutes. -
connectionTimeout
Timeout in milliseconds for how long to for a connectiuon to connect. Default is 1 minute. -
actor
Actor used for switching groups of actions. See the reference documentation for details. -
messageCorrelator
-
messageConverter
-
timeout
-
pollingInterval
-
-
Constructor Details
-
SshClientModel
public SshClientModel()
-
-
Method Details
-
getId
Ruft den Wert der id-Eigenschaft ab.- Returns:
- possible object is
String
-
setId
Legt den Wert der id-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getHost
Host to connect to for sending an SSH Exec request. Default is 'localhost'- Returns:
- possible object is
String
-
setHost
Legt den Wert der host-Eigenschaft fest. -
getPort
Port to use. Default is 2222- Returns:
- possible object is
String
-
setPort
Legt den Wert der port-Eigenschaft fest. -
getPrivateKeyPath
Path to a private key, which can be either a plain file path or an class resource if prefixed with 'classpath:'- Returns:
- possible object is
String
-
setPrivateKeyPath
Legt den Wert der privateKeyPath-Eigenschaft fest.- Parameters:
value- allowed object isString- See Also:
-
getPrivateKeyPassword
Optional password for the private key- Returns:
- possible object is
String
-
setPrivateKeyPassword
Legt den Wert der privateKeyPassword-Eigenschaft fest.- Parameters:
value- allowed object isString- See Also:
-
getUser
User used for connecting to the SSH server.- Returns:
- possible object is
String
-
setUser
Legt den Wert der user-Eigenschaft fest. -
getPassword
Password used for password based authentication. Might be combined with "private-key-path" in which case both authentication mechanism are tried.- Returns:
- possible object is
String
-
setPassword
Legt den Wert der password-Eigenschaft fest.- Parameters:
value- allowed object isString- See Also:
-
isStrictHostChecking
Whether the host key should be verified by looking it up in a 'known_hosts' file. Default is false.- Returns:
- possible object is
Boolean
-
setStrictHostChecking
Legt den Wert der strictHostChecking-Eigenschaft fest.- Parameters:
value- allowed object isBoolean- See Also:
-
getKnownHostsPath
Path to a known hosts file. If prefixed with 'classpath:' this file is looked up as a resource in the classpath.- Returns:
- possible object is
String
-
setKnownHostsPath
Legt den Wert der knownHostsPath-Eigenschaft fest.- Parameters:
value- allowed object isString- See Also:
-
getCommandTimeout
Timeout in milliseconds for how long to wait for the SSH command to complete. Default is 5 minutes.- Returns:
- possible object is
Integer
-
setCommandTimeout
Legt den Wert der commandTimeout-Eigenschaft fest.- Parameters:
value- allowed object isInteger- See Also:
-
getConnectionTimeout
Timeout in milliseconds for how long to for a connectiuon to connect. Default is 1 minute.- Returns:
- possible object is
Integer
-
setConnectionTimeout
Legt den Wert der connectionTimeout-Eigenschaft fest.- Parameters:
value- allowed object isInteger- See Also:
-
getActor
Actor used for switching groups of actions. See the reference documentation for details.- Returns:
- possible object is
String
-
setActor
Legt den Wert der actor-Eigenschaft fest.- Parameters:
value- allowed object isString- See Also:
-
getMessageCorrelator
Ruft den Wert der messageCorrelator-Eigenschaft ab.- Returns:
- possible object is
String
-
setMessageCorrelator
Legt den Wert der messageCorrelator-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getMessageConverter
Ruft den Wert der messageConverter-Eigenschaft ab.- Returns:
- possible object is
String
-
setMessageConverter
Legt den Wert der messageConverter-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getTimeout
Ruft den Wert der timeout-Eigenschaft ab.- Returns:
- possible object is
String
-
setTimeout
Legt den Wert der timeout-Eigenschaft fest.- Parameters:
value- allowed object isString
-
getPollingInterval
Ruft den Wert der pollingInterval-Eigenschaft ab.- Returns:
- possible object is
String
-
setPollingInterval
Legt den Wert der pollingInterval-Eigenschaft fest.- Parameters:
value- allowed object isString
-