net.sf.hermesftp.common
Interface FtpEventListener

All Known Implementing Classes:
AbstractFtpServer, DefaultFtpServer, SecureFtpServer

public interface FtpEventListener

Eventlistener that is implemented by classes that are to be informed by FTP command objects on certain events.

Author:
Lars Behnke

Method Summary
 void downloadPerformed(java.lang.String clientId, java.io.File file)
          The event is called after a file has been downloaded by a client.
 void loginPerformed(java.lang.String clientId, boolean successful)
          Number of failed long attempts.
 void sessionClosed(java.lang.Object sessionObj)
          Method is called after a client session has been closed.
 void sessionOpened(java.lang.Object sessionObj)
          Method is called after a client session has been opened.
 void uploadPerformed(java.lang.String clientId, java.io.File file)
          The event is called after a file has been uploaded by a client.
 

Method Detail

uploadPerformed

void uploadPerformed(java.lang.String clientId,
                     java.io.File file)
The event is called after a file has been uploaded by a client.

Parameters:
file - The uploaded file.
clientId - The unique ID of a client.

downloadPerformed

void downloadPerformed(java.lang.String clientId,
                       java.io.File file)
The event is called after a file has been downloaded by a client.

Parameters:
file - The downloaded file.
clientId - The unique ID of a client.

loginPerformed

void loginPerformed(java.lang.String clientId,
                    boolean successful)
Number of failed long attempts.

Parameters:
clientId - The unique ID of a client.
successful - True, if the authentication was successful.

sessionOpened

void sessionOpened(java.lang.Object sessionObj)
Method is called after a client session has been opened.

Parameters:
sessionObj - The closed session object.

sessionClosed

void sessionClosed(java.lang.Object sessionObj)
Method is called after a client session has been closed.

Parameters:
sessionObj - The closed session object.


Copyright © 2005-2007 Lars Behnke. All Rights Reserved.