mina-ftpserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Gustavsson" <nik...@protocol7.com>
Subject Re: Versions of ftp server and Ftplet error callback method
Date Sun, 29 Jun 2008 19:13:46 GMT
On Sun, Jun 29, 2008 at 3:10 AM, MuleAndJava <nick_vujasin@yahoo.com> wrote:
> I recently started on a Java contract that is using Rana Battacharyya's old
> ftp server code.  Was the Apache Mina FtpServer started from Rana's
> codebase?

Yes, that's correct :-)

> Old developers on the project I'm working on now hacked into Rana's code
> base to register listeners on ftp events that occurred and I would like to
> throw out all that old code and simply register an FTPlet to listen for
> events. I've noticed in the FTPlet callback methods there isn't a callback
> or notification of when an error occurs in the FTP process on the ftp
> server.  For example during an upload to the ftp server there is an
> onUploadStart callback and a onUploadEnd callback which only gets called
> back when a successful upload took place.  What about if there was an error
> in the upload, is there a callback method that I am missing if an error took
> place.

No, your analysis is correct. There was some discussion some time ago
on making the Ftplet API more generic, much like the Servlet API. My
plan, that will not be done for the next milestone is to change the
Ftplet interface to a completely generic API that is called before and
after each command. The old Ftplet interface API would be kept as a
abstract class, much like HttpServlet. As part of that change I would
also be happy to include a callback on an error, I think its a
reasonable condition to be aware of.  I've created an JIRA issue to
keep track of this change:
https://issues.apache.org/jira/browse/FTPSERVER-138

If you don't feel like waiting for that change, please provide a patch
and I'll have a look at including it in the mean time.

/niklas

Mime
View raw message