com.jscape.inet.sftp.events
Class SftpUploadEvent
java.lang.Object
com.jscape.inet.sftp.events.SftpEvent
com.jscape.inet.sftp.events.SftpTransferCompleteEvent
com.jscape.inet.sftp.events.SftpUploadEvent
public final class SftpUploadEvent
- extends SftpTransferCompleteEvent
This event is fired when file is uploaded to the SSH server.
Constructor Summary |
SftpUploadEvent(Sftp source,
java.lang.String fileName,
java.lang.String path,
java.lang.String localPath,
long fileSize,
long uploadTime)
Creates a new event instance. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SftpUploadEvent
public SftpUploadEvent(Sftp source,
java.lang.String fileName,
java.lang.String path,
java.lang.String localPath,
long fileSize,
long uploadTime)
- Creates a new event instance.
- Parameters:
source
- the source of the eventfileName
- the file namepath
- the remote path the file was uploaded tolocalPath
- the local file pathfileSize
- the file size in bytesuploadTime
- total download time
acceptListener
public void acceptListener(SftpListener listener)
- The "backwards dispatching" support.
- Specified by:
acceptListener
in class SftpEvent
- Parameters:
listener
- the event listener
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved