Search Java FTP Server Library

I am looking for a Java FTP server library that allows replacing DAL with DB data. So far I have seen that in Apache FtpServer it is possible to intercept some of the commands using the FTPLet container, but it lacks the most important command, such as LIST.

+4
source share
1 answer

In Apache FtpServer, you can intercept any command with Ftplet, including LIST. Deploy the Ftplet interface and override the beforeCommand or afterCommand command (depending on whether you want to process the request or response). These methods will be called for each command sent to the server.

But, from your question, instead, you may be interested in implementing a custom file system. Take a look at the FileSystemFactory, FileSystemView, and FtpFile interfaces.

+3
source

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


All Articles