com.jscape.inet.sftp.events
Class SftpChangeDirEvent
java.lang.Object
com.jscape.inet.sftp.events.SftpEvent
com.jscape.inet.sftp.events.SftpChangeDirEvent
public final class SftpChangeDirEvent
- extends SftpEvent
This event is fired when the remote directory path is changed on the server.
Constructor Summary |
SftpChangeDirEvent(Sftp source,
java.lang.String dir)
Creates a new SftpChangeDirEvent instance |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SftpChangeDirEvent
public SftpChangeDirEvent(Sftp source,
java.lang.String dir)
- Creates a new SftpChangeDirEvent instance
- Parameters:
source
- the source of this eventdir
- the new remote directory name
getDirectory
public java.lang.String getDirectory()
- Gets the new remote directory name
- Returns:
- remote directory name
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