The BatchSCP OTD’s Client node includes the following methods:
connect(): Connects to the SSH server and does authentication as configured.
disconnect(): Disconnects from the SSH server.
get(): Copies the file or directory specified by the configuration parameters, Remote Directory and Remote File, to the local, as specified by configuration parameters Local Directory and Local File. If the configuration parameter, Is Copy Recursive, is set to Yes, the copy will be recursive.
getPayload(): Returns the payload buffer as a byte array.
getRecursive(): Copies data from remote to local with configuration parameter Recursive set to "Yes".
isConnected(): Checks whether the client is connected to the SSH server.
put(): Copies local data (specified by configuration parameters LocalDirectory and LocalFile) to the remote SSH server (specified by configuration parameters RemoteDirectory and RemoteFile).
putRecursive(): Copies data from local to remote with the configuration parameter Recursive set to "Yes".
setpayload(byte[] newPayload): Sets the payload.
See the Batch adapter Javadoc for a list of all exposed SCPClient methods.