|
Secure FTP Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.ftp.FtpAdapter
public class FtpAdapter
Implements methods for capturing events sourced from Ftp class.
This class is intended to provide vertical compatibility with FtpListener
interface.
Typicaly your application will use this class instead of FtpListener interface
to capture the following events :
FtpConnectedEvent
FtpDisconnectedEvent
FtpUploadEvent
FtpDownloadEvent
FtpCommandEvent
FtpResponseEvent
FtpListingEvent
FtpProgressEvent
FtpConnectionLostEvent
Constructor Summary | |
---|---|
FtpAdapter()
|
Method Summary | |
---|---|
void |
changeDir(FtpChangeDirEvent event)
Invoked when the remote directory path is changed on the server. |
void |
commandSent(FtpCommandEvent event)
Invoked when a command is sent to FTP server. |
void |
connected(FtpConnectedEvent event)
Invoked when connection to FTP server is established. |
void |
connectionLost(FtpConnectionLostEvent event)
Invoked when connection to FTP server is unexpectedly closed. |
void |
createDir(FtpCreateDirEvent event)
Invoked when a directory is created. |
void |
deleteDir(FtpDeleteDirEvent event)
Invoked when directory is deleted. |
void |
deleteFile(FtpDeleteFileEvent event)
Invoked when a file is deleted. |
void |
disconnected(FtpDisconnectedEvent event)
Invoked when connection to FTP server is released. |
void |
download(FtpDownloadEvent event)
Invoked when file is downloaded from FTP server. |
void |
listing(FtpListingEvent event)
Invoked when directory listing is retrieved from FTP server. |
void |
progress(FtpProgressEvent event)
Invoked to mark progress of a download or upload operation. |
void |
renameFile(FtpRenameFileEvent event)
Invoked when a file is renamed. |
void |
responseReceived(FtpResponseEvent event)
Invoked when a response is received from FTP server. |
void |
upload(FtpUploadEvent event)
Invoked when file is uploaded to FTP server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FtpAdapter()
Method Detail |
---|
public void connected(FtpConnectedEvent event)
connected
in interface FtpListener
event
- a FtpConnectedEvent
FtpConnectedEvent
public void disconnected(FtpDisconnectedEvent event)
disconnected
in interface FtpListener
event
- a FtpDisconnectedEvent
FtpDisconnectedEvent
public void upload(FtpUploadEvent event)
upload
in interface FtpListener
event
- a FtpUploadEvent
FtpUploadEvent
public void download(FtpDownloadEvent event)
download
in interface FtpListener
event
- a FtpDownloadEvent
FtpDownloadEvent
public void progress(FtpProgressEvent event)
progress
in interface FtpListener
event
- a FtpProgressEvent
FtpProgressEvent
public void listing(FtpListingEvent event)
listing
in interface FtpListener
event
- a FtpListingEvent
FtpListingEvent
public void commandSent(FtpCommandEvent event)
commandSent
in interface FtpListener
event
- a FtpCommandEvent
FtpCommandEvent
public void responseReceived(FtpResponseEvent event)
responseReceived
in interface FtpListener
event
- a FtpResponseEvent
FtpResponseEvent
public void connectionLost(FtpConnectionLostEvent event)
connectionLost
in interface FtpListener
event
- a FtpConnectionLostEvent
FtpConnectionLostEvent
public void deleteDir(FtpDeleteDirEvent event)
deleteDir
in interface FtpListener
event
- a FtpDeleteDirEvent
FtpDeleteDirEvent
public void deleteFile(FtpDeleteFileEvent event)
deleteFile
in interface FtpListener
event
- a FtpDeleteFileEvent
FtpDeleteFileEvent
public void renameFile(FtpRenameFileEvent event)
renameFile
in interface FtpListener
event
- a FtpRenameFileEvent
FtpRenameFileEvent
public void createDir(FtpCreateDirEvent event)
createDir
in interface FtpListener
event
- a FtpCreateDirEvent
FtpCreateDirEvent
public void changeDir(FtpChangeDirEvent event)
changeDir
in interface FtpListener
event
- a FtpChangeDirEvent
FtpChangeDirEvent
|
Secure FTP Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |