org.finj
Interface FTPClientObserver

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
FTPClientAdapter

public interface FTPClientObserver
extends java.util.EventListener

Instances of this observer receive notifications of the progress of the work of an FTPClient to which they have to be registered.

Copyright (C) 2000-2008 Javier Iglesias.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Version:
$Id: FTPClientObserver.java 47 2008-01-11 23:09:46Z jiglesias $
Author:
Javier Iglesias -- jiglesias@users.sourceforge.net

Method Summary
 void commandSent(java.lang.String command)
          Method called when a command has been sent to the FTP server.
 void controlConnectionClosed()
          Method called whenever a new connection is closed with a server.
 void controlConnectionOpened()
          Method called whenever a new connection is opened with a server.
 void dataReceived(int bytes)
          Method called whenever data is received from the FTP server.
 void dataSent(int bytes)
          Method called whenever data is sent to the FTP server.
 void isObserving(boolean isIt)
          Method called by an FTPClient when this is added or removed as an observer.
 void responseReceived(FTPResponse response)
          Method called when a response is received from the FTP server.
 

Method Detail

isObserving

void isObserving(boolean isIt)
Method called by an FTPClient when this is added or removed as an observer. [API DISCUSSION : Do you think this is useless ?]

Parameters:
isIt - true when this is a new observer of a FTPClient, false when removed.
Since:
v1.0

controlConnectionOpened

void controlConnectionOpened()
Method called whenever a new connection is opened with a server.

Since:
v1.0

controlConnectionClosed

void controlConnectionClosed()
Method called whenever a new connection is closed with a server.

Since:
v1.0

commandSent

void commandSent(java.lang.String command)
Method called when a command has been sent to the FTP server.

Since:
v1.0

responseReceived

void responseReceived(FTPResponse response)
Method called when a response is received from the FTP server.

Since:
v1.0

dataReceived

void dataReceived(int bytes)
Method called whenever data is received from the FTP server. This is a convenient way to monitor the work of the FTPClient.

Parameters:
bytes - number of bytes of data received from the server.
Since:
v1.0

dataSent

void dataSent(int bytes)
Method called whenever data is sent to the FTP server. This is a convenient way to monitor the work of the FTPClient.

Parameters:
bytes - number of bytes of data sent to the server.
Since:
v1.0


Copyright © 2009. All Rights Reserved.