Re: Is there a way to access the FtpSession.lastReply in the handleOnClose() call?

2011-03-01 Thread Toli Kuznets
David, I ended up filing an RFE for this at https://issues.apache.org/jira/browse/FTPSERVER-401 so that it can be tracked easier. 2011/2/12 Toli Kuznets tkuzn...@marinsoftware.com: Hi, I have a custom FtpLet and I wan to kick off a job on file upload, so i override the handleOnClose()

Re: Is there a way to access the FtpSession.lastReply in the handleOnClose() call?

2011-03-01 Thread Sai Pullabhotla
Assuming you are playing with the code in the trunk, all you have to do is check if the FtpReply is a positive reply by calling FtpReply.isPositive. If this method returns true, it is a successful upload, otherwise, it is not. You can then type cast the FtpReply to DataTransferFtpReply to access

Re: Is there a way to access the FtpSession.lastReply in the handleOnClose() call?

2011-03-01 Thread Sai Pullabhotla
I think I see what you are saying now, after looking at the Ftplet interface and DefaultFtplet. The Ftplet interface has afterCommand and beforeCommand methods which are called back with FtpRequest, FtpReply and FtpSession parameters. The DefaultFtplet captures the afterCommand and calls the

Re: Is there a way to access the FtpSession.lastReply in the handleOnClose() call?

2011-02-14 Thread David Latorre
Hello Toli, why don't you set your ftpet to be run after STOR (and STOU...) command? In the old way this was the method onUploadEnd(). 2011/2/12 Toli Kuznets tkuzn...@marinsoftware.com: Hi, I have a custom FtpLet and I wan to kick off a job on file upload, so i override the

Re: Is there a way to access the FtpSession.lastReply in the handleOnClose() call?

2011-02-14 Thread David Latorre
Uh, I see that's what you did :) 2011/2/14 David Latorre dvl...@gmail.com: Hello Toli,  why don't you set your ftpet to be run after STOR (and STOU...) command? In the old way  this was the method onUploadEnd(). 2011/2/12 Toli Kuznets tkuzn...@marinsoftware.com: Hi, I have a custom

Re: Is there a way to access the FtpSession.lastReply in the handleOnClose() call?

2011-02-14 Thread Toli Kuznets
Oh, my bad. My eyes saw onUploadEnd() but, for some reason, my fingers kept typing handleOnClose() sorry for the confusion On Mon, Feb 14, 2011 at 1:46 AM, David Latorre dvl...@gmail.com wrote: Uh, I see that's what you did :) 2011/2/14 David Latorre dvl...@gmail.com: Hello Toli,

Is there a way to access the FtpSession.lastReply in the handleOnClose() call?

2011-02-12 Thread Toli Kuznets
Hi, I have a custom FtpLet and I wan to kick off a job on file upload, so i override the handleOnClose() call. I'm running into a situation where when my users use SSIS (scary Microsoft product) to send files over FTP, they are not able to establish a data connection to my server (separate