|
Secure FTP Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FtpListener
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 |
|---|
void connected(FtpConnectedEvent event)
event - a FtpConnectedEventFtpConnectedEventvoid disconnected(FtpDisconnectedEvent event)
event - a FtpDisconnectedEventFtpDisconnectedEventvoid deleteDir(FtpDeleteDirEvent event)
event - a FtpDeleteDirEventFtpDeleteDirEventvoid deleteFile(FtpDeleteFileEvent event)
event - a FtpDeleteFileEventFtpDeleteFileEventvoid renameFile(FtpRenameFileEvent event)
event - a FtpRenameFileEventFtpRenameFileEventvoid createDir(FtpCreateDirEvent event)
event - a FtpCreateDirEventFtpCreateDirEventvoid changeDir(FtpChangeDirEvent event)
event - a FtpChangeDirEventFtpChangeDirEventvoid upload(FtpUploadEvent event)
event - a FtpUploadEventFtpUploadEventvoid download(FtpDownloadEvent event)
event - a FtpDownloadEventFtpDownloadEventvoid progress(FtpProgressEvent event)
event - a FtpProgressEventFtpProgressEventvoid listing(FtpListingEvent event)
event - a FtpListingEventFtpListingEventvoid commandSent(FtpCommandEvent event)
event - a FtpCommandEventFtpCommandEventvoid responseReceived(FtpResponseEvent event)
event - a FtpResponseEventFtpResponseEventvoid connectionLost(FtpConnectionLostEvent event)
event - a FtpConnectionLostEventFtpConnectionLostEvent
|
Secure FTP Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||