1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 package net.sf.hermesftp.common;
26
27 import java.io.File;
28
29 /***
30 * <code>Eventlistener</code> that is implemented by classes that are to be informed by FTP
31 * command objects on certain events.
32 *
33 * @author Lars Behnke
34 */
35 public interface FtpEventListener {
36
37 /***
38 * The event is called after a file has been uploaded by a client.
39 *
40 * @param file The uploaded file.
41 * @param clientId The unique ID of a client.
42 */
43 void uploadPerformed(String clientId, File file);
44
45 /***
46 * The event is called after a file has been downloaded by a client.
47 *
48 * @param file The downloaded file.
49 * @param clientId The unique ID of a client.
50 */
51 void downloadPerformed(String clientId, File file);
52
53 /***
54 * Number of failed long attempts.
55 *
56 * @param clientId The unique ID of a client.
57 * @param successful True, if the authentication was successful.
58 */
59 void loginPerformed(String clientId, boolean successful);
60
61 /***
62 * Method is called after a client session has been opened.
63 *
64 * @param sessionObj The closed session object.
65 */
66 void sessionOpened(Object sessionObj);
67
68 /***
69 * Method is called after a client session has been closed.
70 *
71 * @param sessionObj The closed session object.
72 */
73 void sessionClosed(Object sessionObj);
74
75 }