KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > coldcore > coloradoftp > connection > DataConnectionCallback


1 package com.coldcore.coloradoftp.connection;
2
3 /**
4  * Data connection callback.
5  *
6  * When data connection terminates it notifies the callback. This is a good place to
7  * insert post-upload/download logic.
8  *
9  *
10  * ColoradoFTP - The Open Source FTP Server (http://cftp.coldcore.com)
11  */

12 public interface DataConnectionCallback {
13
14   /** Called after data transfer completes successfully and the data channel is closed
15    * @param source Data connection that has triggered the event
16    */

17   public void onTransferComplete(DataConnection source);
18
19
20   /** Called after data transfer aborts or client disconnects and the data channel is closed
21    * @param source Data connection that has triggered the event
22    */

23   public void onTransferAbort(DataConnection source);
24 }
25
Popular Tags