Hi Dave,

    The FtpStatistics class hierarchy is like:

FtpStatistics <-- IFtpStatistics <-- FtpStatisticsImpl

FtpStatistics is supposed to be used in the Ftplet
environment where nobody should be allowed to set any
statistics value. Only the FTP server can change the
statistics value. So the FtpStatistics has no setter
methods. As the server has to set different statstics
values, internally IFtpStatistics will be used. "I"
prefix has been added to differentiate which will be
used internally by the server and which is exposed to
the Ftplet developers. 

You can always cast it to IFtpStatistics. But from
Ftplet point of view, it will be better to use Ftplet
instead. Then the custom code and core server code
separation will be clean. 

Thanks,
Rana Bhattacharyya


--- Dave Roberts <[EMAIL PROTECTED]>
wrote:

> I noticed that within
> org.apache.ftpserver.FtpConfigImpl, the
> getFtpStatistics() method is returning
> FtpStatistics.   However, the
> class actually holds an instance of IFtpStatistics. 
> Is there some
> reason that getFtpStatistics() is implemented that
> way?
> 
> I was thinking of using the default statistics
> handler but setting
> my own FileObserver.  I can only do this if the
> method is changed to
> return the IFtpStatistics instead.
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to