|
Secure iNet Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Implements methods for capturing events sourced from Ftp class.
Typicaly your application will implement this interface to capture the following events :FtpConnectedEventFtpDisconnectedEventFtpUploadEventFtpDownloadEventFtpCommandEventFtpRespon seEventFtpListingEventFtpProgressEventFtpConnectionLostEventFtpDeleteDirEventFtpDeleteFileEventFtpRenameFileEventFtpCreateDirEventFtpChangeDirEventIn addition to implementing this interface your application should register itself as an EventListener which may look somewhat like this:
public class Application ... implements FtpListener
{
...
public ... initMethod(...)
{
Ftp ftp = new Ftp();
ftp.addListener(this);
} j
...
}
| 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 FTP 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. |
| Method Detail |
public void connected(FtpConnectedEvent event)
event - a FtpConnectedEventFtpConnectedEventpublic void disconnected(FtpDisconnectedEvent event)
event - a FtpDisconnectedEventFtpDisconnectedEventpublic void deleteDir(FtpDeleteDirEvent event)
event - a FtpDeleteDirEventFtpDeleteDirEventpublic void deleteFile(FtpDeleteFileEvent event)
event - a FtpDeleteFileEventFtpDeleteFileEventpublic void renameFile(FtpRenameFileEvent event)
event - a FtpRenameFileEventFtpRenameFileEventpublic void createDir(FtpCreateDirEvent event)
event - a FtpCreateDirEventFtpCreateDirEventpublic void changeDir(FtpChangeDirEvent event)
event - a FtpChangeDirEventFtpChangeDirEventpublic void upload(FtpUploadEvent event)
event - a FtpUploadEventFtpUploadEventpublic void download(FtpDownloadEvent event)
event - a FtpDownloadEventFtpDownloadEventpublic void progress(FtpProgressEvent event)
event - a FtpProgressEventFtpProgressEventpublic void listing(FtpListingEvent event)
event - a FtpListingEventFtpListingEventpublic void commandSent(FtpCommandEvent event)
event - a FtpCommandEventFtpCommandEventpublic void responseReceived(FtpResponseEvent event)
event - a FtpResponseEventFtpResponseEventpublic void connectionLost(FtpConnectionLostEvent event)
event - a FtpConnectionLostEventFtpConnectionLostEvent
|
Secure iNet Factory | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||