I digged into the code and javadoc some more and found that I could achieve
the functionality I want by using the FtpStatistics/ServerFtpStatistics
interface. Is this the correct way to go?

Thanks.

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



On Fri, Nov 14, 2008 at 8:13 AM, Sai Pullabhotla <
[EMAIL PROTECTED]> wrote:

> 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