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.