Java中的FTP的实现 [英] Serverside implementation of FTP in Java

查看:95
本文介绍了Java中的FTP的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想建立一个在后台没有实际文件的FTP服务器。相反,我希望上传到它的文件立即由我的后端处理。上传目录的文件列表应包含那些尚未处理的文件。删除或移动应该是不可能的。



另外,在下载方面,我想介绍我能够提供的那些文件。但是文件应该由后端创建 - 也可以根据需要创建。



因为我不想重新实现FTP,所以有人知道有一个Java库可以帮助你实现服务器端的FTP协议,这是可定制的,因为我需要它?



我已经看到了总是有帮助的雅加达共享,但他们似乎请注意客户端。



谢谢

Mike

[; - )

解决方案

查看 http:// mina .apache.org / ftpserver /


Apache FtpServer是100%纯Java FTP服务器。它被设计成基于当前可用的开放协议的完整的便携式FTP服务器引擎解决方案。 FtpServer可以作为Windows服务或Unix / Linux守护进程独立运行,也可以嵌入到Java应用程序中。我们还为Spring应用程序中的集成提供支持,并将我们的版本提供为OSGi包。


$ b 默认的网络支持基于Apache MINA,这是一款高性能异步IO库。使用MINA,FtpServer可以扩展到大量的并发用户。



I want to build an FTP server that has no actual files in the background. Rather I want the files uploaded to it being immediately processed by my backend. The file listing of the upload directories should contain those files that are not yet processed. Deletion or moving should not be possible.

Also, on the download side I want to present those files that I'm able to deliver. But files shall be created - again by the backend - on demand.

Since I don't want to reimplement FTP, does anyone know a Java library that helps implementing the server side of the FTP protocol, that is customizable as I need it to be?

I have looked into the always helpful Jakarta Commons but they seem to focus on the client side.

Thanks
Mike
[;-)

解决方案

Check out http://mina.apache.org/ftpserver/.

The Apache FtpServer is a 100% pure Java FTP server. It's designed to be a complete and portable FTP server engine solution based on currently available open protocols. FtpServer can be run standalone as a Windows service or Unix/Linux daemon, or embedded into a Java application. We also provide support for integration within Spring applications and provide our releases as OSGi bundles.

The default network support is based on Apache MINA, a high performance asynchronous IO library. Using MINA, FtpServer can scale to a large number of concurrent users.

这篇关于Java中的FTP的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆