Package com.enterprisedt.net.ftp
Interface EventListener
- All Known Implementing Classes:
EventAdapter,EventCollector
public interface EventListener
Listens for interesting file transfer events.
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Method Summary
Modifier and TypeMethodDescriptionvoidbytesTransferred(String connId, String remoteFilename, long count) Report the number of bytes transferred so far.voidcommandSent(String connId, String cmd) Log an FTP command being sent to the server.voiddownloadCompleted(String connId, String remoteFilename) Notifies that a download has completedvoiddownloadStarted(String connId, String remoteFilename) Notifies that a download has startedvoidreplyReceived(String connId, String reply) Log an FTP reply being sent back to the client.voiduploadCompleted(String connId, String remoteFilename) Notifies that an upload has completedvoiduploadStarted(String connId, String remoteFilename) Notifies that an upload has started
-
Method Details
-
commandSent
Log an FTP command being sent to the server. Not used for SFTP.- Parameters:
connId- Identifier of FTP connectioncmd- command string
-
replyReceived
Log an FTP reply being sent back to the client. Not used for SFTP.- Parameters:
connId- Identifier of FTP connectionreply- reply string
-
bytesTransferred
Report the number of bytes transferred so far. This may not be entirely accurate for transferring text files in ASCII mode, as new line representations can be represented differently on different platforms.- Parameters:
connId- Identifier of FTP connectionremoteFilename- Name of remote filecount- count of bytes transferred
-
downloadStarted
Notifies that a download has started- Parameters:
connId- Identifier of FTP connectionremoteFilename- remote file name
-
downloadCompleted
Notifies that a download has completed- Parameters:
connId- Identifier of FTP connectionremoteFilename- remote file name
-
uploadStarted
Notifies that an upload has started- Parameters:
connId- Identifier of FTP connectionremoteFilename- remote file name
-
uploadCompleted
Notifies that an upload has completed- Parameters:
connId- Identifier of FTP connectionremoteFilename- remote file name
-