mina-ftpserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Gustavsson <nik...@protocol7.com>
Subject Re: Multiple Custom Ftplet Classes
Date Fri, 03 Jul 2009 06:48:30 GMT
On Fri, Jul 3, 2009 at 1:15 AM, Kandarp Desai<kandarpdesai@gmail.com> wrote:
> I'm using custom Ftplet for Apache FTP server.
> Can I have two different upLoad events(defined in two different classes)
> which should be able to call based on which directory user is uploading to?
> E.g. If user uploads file to /user/XYZ/file1/, onUpload method defined in
> class org.apache.ftplet.class1 should be called
> And, If user uploads file to /user/XYZ/file2/, onUpload method defined in
> class org.apache.ftplet.class2 should be called

Yes, you can have multiple Ftplets defined and each will be called
after another. Then each Ftplet can determine if it should handle the
current upload.

/niklas

Mime
View raw message