You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-dev@incubator.apache.org by Joakim Back <jo...@notitium.se> on 2007/01/23 09:33:59 UTC

Implementing a virtual file system

Hello!

I'm looking into using the impressive Apache FTP Server as a facade to a 
virtual file system within an application we're currently developing. 
The idea is to have the FTP server access the virtual files through a 
service layer, as a kind of back door to the application data.

The Ftplets seem to allow hooking into some general events, but is it 
also possible to hook such things as "onFileListing" or implementing a 
custom filemanager?

Any pointer towards where to start looking for a sollution would be 
greatly appreciated.

Best regards,

Joakim Back

Re: Implementing a virtual file system

Posted by Dave Roberts <da...@saaconsultants.com>.
It was 23/01/2007 09:33, when Joakim Back wrote:

> The Ftplets seem to allow hooking into some general events, but is it 
> also possible to hook such things as "onFileListing" or implementing a 
> custom filemanager?

I have done this with a custom FileSystemManager, FileSystemView and
FileObject.  It was simple enough.  If you want to tweak things
further, then it's straight forward to use the Ftplet also.

Re: Implementing a virtual file system

Posted by Joakim Back <jo...@notitium.se>.
Thank you both Dave and Bastian,

This does indeed seem like a straightforward and intuitive solution!
I'm working with a quick test and it seems to fit my needs perfectly.

Best regards,

Joakim Back


Bastian Gerhard skrev:
> Hi Joakim,
>
> Yes, thats possible, but not within the Ftplet implementation.
>
> You can implement org.apache.ftpserver.ftplet.FileSystemManager into 
> your application and use this as an interface for your application data.
> All you need to do is to specify it in the configuration file, e.g.
>
> <file-system-manager>
>   <class>com.myApp.myFtpFileSystemManager</class>
> </file-system-manager>
>
> Heres the FtpFileSystemManager API:
> http://incubator.apache.org/ftpserver/apidocs/org/apache/ftpserver/ftplet/FileSystemManager.html 
>
>
> Regards,
> Bastian
>
>
> On Jan 23, 2007, at 6:33 PM, Joakim Back wrote:
>
>> Hello!
>>
>> I'm looking into using the impressive Apache FTP Server as a facade 
>> to a virtual file system within an application we're currently 
>> developing. The idea is to have the FTP server access the virtual 
>> files through a service layer, as a kind of back door to the 
>> application data.
>>
>> The Ftplets seem to allow hooking into some general events, but is it 
>> also possible to hook such things as "onFileListing" or implementing 
>> a custom filemanager?
>>
>> Any pointer towards where to start looking for a sollution would be 
>> greatly appreciated.
>>
>> Best regards,
>>
>> Joakim Back
>>
>
>
> ---
>
> Bastian Gerhard
> Technology Group, Ashley Associates Ltd.
>
> Minami-Aoyama First Building 8F,
> 7-8-1 Minami-Aoyama,
> Minato-ku,
> Tokyo 107-0062,
> JAPAN
>
>
>
>


Re: Implementing a virtual file system

Posted by Bastian Gerhard <ge...@ashleyassociates.co.jp>.
Hi Joakim,

Yes, thats possible, but not within the Ftplet implementation.

You can implement org.apache.ftpserver.ftplet.FileSystemManager into  
your application and use this as an interface for your application data.
All you need to do is to specify it in the configuration file, e.g.

<file-system-manager>
   <class>com.myApp.myFtpFileSystemManager</class>
</file-system-manager>

Heres the FtpFileSystemManager API:
http://incubator.apache.org/ftpserver/apidocs/org/apache/ftpserver/ 
ftplet/FileSystemManager.html

Regards,
Bastian


On Jan 23, 2007, at 6:33 PM, Joakim Back wrote:

> Hello!
>
> I'm looking into using the impressive Apache FTP Server as a facade  
> to a virtual file system within an application we're currently  
> developing. The idea is to have the FTP server access the virtual  
> files through a service layer, as a kind of back door to the  
> application data.
>
> The Ftplets seem to allow hooking into some general events, but is  
> it also possible to hook such things as "onFileListing" or  
> implementing a custom filemanager?
>
> Any pointer towards where to start looking for a sollution would be  
> greatly appreciated.
>
> Best regards,
>
> Joakim Back
>


---

Bastian Gerhard
Technology Group, Ashley Associates Ltd.

Minami-Aoyama First Building 8F,
7-8-1 Minami-Aoyama,
Minato-ku,
Tokyo 107-0062,
JAPAN