Dear Developers,

I've been trying to use the Ftplets for audit log purposes. Basically I
would like to implement the Ftplet interface or extend the DefaultFtplet
class and implement/override the appropriate methods. For example, if I
choose to go with extending the DefaultFtplet class, I would like to
override the onDeleteEnd method, and within this method, I would like to
determine if the Delete operation was sucessful or not. Based on the result,
I would like to add a record to my audit log table (e.g. User xyz deleted
file foo or User xyz tried to delete the file foo, but it failed for XYZ
reason).

However, I could not find a way to know the actual result of the command
that was just finished. The only parameters we get in the call back method
are FtpSession and FtpRequest. Neither of these parameters tell me what the
result of the command was. Do you think we need to change the signature of
the afterCommand method to include the FtpReply as well? Or add a new method
in the FtpSession which will return the last FtpReply? (e.g.
FtpSession.getLastFtpReply()).

I look forward for your suggestions/comments.

Thanks.

Sai Pullabhotla
Phone: (402) 408-5753
Fax: (402) 408-6861
www.jMethods.com

Reply via email to