FTP server implementation in Java

I want to create an FTP server that does not have actual files in the background. Rather, I want the downloaded files to be processed immediately by my backend. The list of download directory files should contain files that have not yet been processed. Removal or relocation should not be possible.

In addition, on the download side, I want to introduce the files that I can provide. But files must be created - again using the backend - on request.

Since I don't want to redefine FTP, does anyone know a Java library that helps implement the server side of the FTP protocol, which is configured as I need?

I have studied the always useful Jakarta House of Commons, but they seem to be client-centered.

thanks
Mike
[; -)

+4
source share
4 answers

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

Apache FtpServer is a 100% pure Java FTP server. It is designed for a complete and portable FTP server solution based on currently available open protocols. FtpServer can run autonomously as a Windows service or as a Unix / Linux daemon or embedded in a Java application. We also support integration in Spring applications and provide our releases as OSGi packages.

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

+5
source

Perhaps you can use Apache FtpServer .

The Apache FtpServer is a 100% pure Java FTP server. It 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.

+1
source

The above Java FTP Server links do not work because they have been moved below:

http://mina.apache.org/ftpserver-project/index.html

+1
source

Here are a couple that might be helpful:
http://drftpd.org/
http://mina.apache.org/ftpserver/

Since you actually do not want the files to be transferred and listed in the normal FTP mode, you need to intercept the codes of how the files are listed and received by clients.

0
source

Source: https://habr.com/ru/post/1301899/


All Articles