Hi

I've just completed the refactoring to make Ftplets generic. The
change basically removed all the command specific callback methods
from the Ftplet interface and instead adds a beforeCommand() and
afterCommand() method. These will be called before and after any
command, even if the command is not supported by the server. The
return values works as before. The DefaultFtplet class still has the
command specific methods, and will map between the generic methods and
these. This means, that if you have an old Ftplet and don't want to
rewrite it for the new interface, just extend DefaultFtplet instead.

Note that there has been some behavior changes:
* onXxxxEnd methods will now be called even if the command failed
* onXxxxEnd methods will now be called even if the onXxxStart method
returned RET_SKIP
* onLogin can no longer be used to extend authentication, it is now
called after authentication is complete. If you would like to provide
your own authentication extension, this has to be done using a custom
PASS command implementation

I think that's it, feel free to provide feedback and bug reports!

/niklas

Reply via email to