简体   繁体   English

是否有可嵌入的简单Java FTP Server库?

[英]Is there any simple Java FTP Server libraries that is embeddable?

I've tried Apache FTP Server but it lacks document and support. 我已经尝试过Apache FTP Server但它缺乏文档和支持。

And it's totally based on spring configuration framework which I don't think I could understand very quickly. 它完全基于Spring配置框架,我认为我不能很快理解。

What I want is just 我想要的只是

  1. a simple FTP Server that could I could embed into my application 一个简单的FTP服务器,我可以嵌入到我的应用程序中
  2. I could handle "download" commands using my own code, sending some data from database instead of from static files. 我可以使用自己的代码处理“下载”命令,从数据库而不是从静态文件发送一些数据。

Any suggestion? 有什么建议吗?

The Apache folks are very good with stuff like Web servers, and that would be the first place I'd look for something like that. Apache人员非常善于使用像Web服务器这样的东西,这将是我第一次寻找类似的东西。 Their documentation looks plenty adequate to me. 他们的文档对我来说足够了。 I'm not a big fan of Spring but if they tell me what to put in which XML file I can handle it. 我不是Spring的忠实粉丝,但如果他们告诉我在哪个XML文件中我可以处理它。 Thus, my first recommendation would be to ask you to reconsider your aversion against the Apache FTP server. 因此,我的第一个建议是要求您重新考虑您对Apache FTP服务器的厌恶。

<update> To help ablmf and provide a more authoritative answer, I downloaded Apache FTP Server and got it working almost right away without having to change anything. <update>为了帮助ablmf并提供更权威的答案,我下载了Apache FTP Server,并且几乎立即就可以正常工作而无需进行任何更改。 More info in Juha's answer and in my answer to ablmf's other question . 更多信息在Juha的回答和我对ablmf的另一个问题的回答中 </update> </更新>

That said, I stumbled across a product from 2001 called jftpd that may satisfy your needs. 也就是说,我偶然发现了2001年的一款名为jftpd的产品,它可以满足您的需求。 It appears to be intentionally very simple-minded, so hopefully you can extend it to your needs. 它似乎是故意非常简单的,所以希望你可以根据自己的需要进行扩展。 However, it doesn't look like documentation is its strong suit. 但是,它看起来不像文档是它的强项。

More modern is Colorado FTP , for which I find updates as late as April 2008. Looks like a very well thought out implementation. 更现代的是科罗拉多FTP ,我在2008年4月才发现更新。看起来是一个经过深思熟虑的实现。 There is a manual in their wiki but it doesn't approach the quality of Apache's. 他们的wiki中有一本手册,但它没有达到Apache的质量。 They provide several builds, some ready-built and some where you have to dive in yourself to some extent. 它们提供了几个构建,一些是现成的,有些是你必须在某种程度上潜入自己。

Try Simple Ftp Serve . 尝试简单的Ftp服务 You can download the whole project and buid it or download just the compiled output. 您可以下载整个项目并进行补充或仅下载编译后的输出。

Have a look at Apache FtpServer . 看看Apache FtpServer Its documentation claims that you can embed it into Java application . 它的文档声称您可以将其嵌入到Java应用程序中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM