StartTransfer Event
Fired when a file starts downloading/uploading.
Syntax
public class DefaultSshplexEventListener implements SshplexEventListener { ... public void startTransfer(SshplexStartTransferEvent e) {} ... } public class SshplexStartTransferEvent { public String operationId; public int direction; public String localFile; public String remoteFile; public String remotePath; public String filePermissions; }
Remarks
This event is fired once per file when it starts downloading/uploading.
OperationId is the string associated with operation fired this event.
Direction is 0 for Uploads and 1 for Downloads.
LocalFile, RemoteFile, and RemotePath are populated with values of LocalFile, RemoteFile, and RemotePath, respectively, that are associated with the method that triggered this event.
FilePermissions includes information about the file that can be modified before finishing the upload/download.