Is there any simple Java FTP Server libraries that

2019-06-15 08:03发布

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?

标签: java ftp
3条回答
乱世女痞
2楼-- · 2019-06-15 08:47

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.

查看更多
对你真心纯属浪费
3楼-- · 2019-06-15 08:56

Have a look at Apache FtpServer. Its documentation claims that you can embed it into Java application.

查看更多
倾城 Initia
4楼-- · 2019-06-15 09:05

Try Simple Ftp Serve. You can download the whole project and buid it or download just the compiled output.

查看更多
登录 后发表回答