有没有可嵌入的简单Java FTP服务器库? [英] Is there any simple Java FTP Server libraries that is embeddable?

查看:76
本文介绍了有没有可嵌入的简单Java FTP服务器库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了Apache FTP服务器,但它缺少文档和支持。

它完全基于弹簧配置框架,我认为我不太明白快速。



我想要的只是一个简单的FTP服务器我可以嵌入到我的应用程序中

  • 我可以使用自己的代码处理下载命令,从数据库中发送一些数据,而不是从静态文件中发送。

  • ol>

    任何建议?

    解决方案

    网络服务器,那将是我寻找类似的东西的第一个地方。他们的文档看起来足够我。我不是Spring的忠实粉丝,但是如果他们告诉我应该在哪个XML文件中放置什么,我可以处理它。因此,我的第一个建议是要求您重新考虑您对Apache FTP服务器的反感。



    < update> 帮助ablmf和提供了一个更权威的答案,我下载了Apache FTP服务器,几乎马上就能完成工作,而无需更改任何内容。更多关于Juha的回答以及我对 ablmf的其他问题的回答。 < / update>



    也就是说,我偶然发现了一个名为 jftpd 可以满足您的需求。它似乎是故意非常简单的,所以希望你可以将它扩展到你的需求。然而,它看起来并不像文件是它的强项。



    更现代的是科罗拉多FTP ,为此我发现最新版本为2008年4月。看起来像是一个非常深思熟虑的实现。他们的wiki中有一本手册,但它并没有涉及Apache的质量。他们提供了几种构建方式,一些是现成的,还有一些你必须在某种程度上潜入自己。

    I've tried Apache FTP Server but it lacks document and support.

    And it's totally based on spring configuration framework which I don't think I could understand very quickly.

    What I want is just

    1. a simple FTP Server that could I could embed into my application
    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. 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. Thus, my first recommendation would be to ask you to reconsider your aversion against the Apache FTP server.

    <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. More info in Juha's answer and in my answer to ablmf's other question. </update>

    That said, I stumbled across a product from 2001 called jftpd that may satisfy your needs. 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. There is a manual in their wiki but it doesn't approach the quality of Apache's. They provide several builds, some ready-built and some where you have to dive in yourself to some extent.

    这篇关于有没有可嵌入的简单Java FTP服务器库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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