I have been doing that with the documentation provided by the Apache FTP server. (https://mina.apache.org/ftpserver/ftplet.html). I am sending FTP reply codes at every stage. I have looked at the RETR command and looks like I am sending the same codes
On 25 November 2010 12:56, John Hartnup <[email protected]> wrote: > On 25 November 2010 11:55, Aidan Diffey <[email protected]> wrote: > >> From what I can see, the DefaultFTPLet code does nothing on the >> onDownloadStart() command. This returns null which causes the default >> execute in the RETR class to be called. >> >> I am returning FtpletResult.SKIP which causes the default RETR command >> to NOT be executed. >> >> So I think I am okay doing implementation in my FTPLet onDownloadStart() >> method. >> >> > That's fine, except that you're skipping all the data connection handling > stuff that Apache ftpserver provides, and will have to write your own. > > -- > "There is no way to peace; peace is the way" >
