|
Secure FTP Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.sftp.events.SftpAdapter
public class SftpAdapter
Implements methods for capturing events sourced from Sftp class. Typicaly your application will use this class instead of SftpListener interface to capture the following events :
SftpConnectedEvent
SftpDisconnectedEvent
SftpUploadEvent
SftpDownloadEvent
SfpListingEvent
SftpProgressEvent
Constructor Summary | |
---|---|
SftpAdapter()
|
Method Summary | |
---|---|
void |
changeDir(SftpChangeDirEvent event)
Invoked when the remote directory path is changed. |
void |
connected(SftpConnectedEvent event)
Invoked when connection to SSH server is established. |
void |
createDir(SftpCreateDirEvent event)
Invoked when a directory is created. |
void |
deleteDir(SftpDeleteDirEvent event)
Invoked when directory is deleted. |
void |
deleteFile(SftpDeleteFileEvent event)
Invoked when a file is deleted. |
void |
dirListing(SftpListingEvent event)
Invoked when directory listing is retrieved from SSH server. |
void |
disconnected(SftpDisconnectedEvent event)
Invoked when connection to SSH server is released. |
void |
download(SftpDownloadEvent event)
Invoked when file is downloaded from SSH server. |
void |
progress(SftpProgressEvent event)
Invoked to mark progress of a SSH download or upload operation. |
void |
renameFile(SftpRenameFileEvent event)
Invoked when a file is renamed. |
void |
upload(SftpUploadEvent event)
Invoked when file is uploaded to SSH server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SftpAdapter()
Method Detail |
---|
public void connected(SftpConnectedEvent event)
connected
in interface SftpListener
event
- a SftpConnectedEvent
SftpConnectedEvent
public void disconnected(SftpDisconnectedEvent event)
disconnected
in interface SftpListener
event
- a SftpDisconnectedEvent
SftpDisconnectedEvent
public void download(SftpDownloadEvent event)
download
in interface SftpListener
event
- a SftpDownloadEvent
SftpDownloadEvent
public void upload(SftpUploadEvent event)
upload
in interface SftpListener
event
- a SftpUploadEvent
SftpUploadEvent
public void progress(SftpProgressEvent event)
progress
in interface SftpListener
event
- a SftpProgressEvent
SftpProgressEvent
public void dirListing(SftpListingEvent event)
dirListing
in interface SftpListener
event
- a SftpListingEvent
SftpListingEvent
public void deleteDir(SftpDeleteDirEvent event)
deleteDir
in interface SftpListener
event
- a SftpDeleteDirEvent
SftpDeleteDirEvent
public void deleteFile(SftpDeleteFileEvent event)
deleteFile
in interface SftpListener
event
- a SftpDeleteFileEvent
SftpDeleteFileEvent
public void renameFile(SftpRenameFileEvent event)
renameFile
in interface SftpListener
event
- a SftpRenameFileEvent
SftpRenameFileEvent
public void createDir(SftpCreateDirEvent event)
createDir
in interface SftpListener
event
- a SftpCreateDirEvent
SftpCreateDirEvent
public void changeDir(SftpChangeDirEvent event)
changeDir
in interface SftpListener
event
- a SftpChangeDirEvent
SftpChangeDirEvent
|
Secure FTP Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |