Can I handle an ftp request using a servlet?

Is it possible to write a servlet that processes an FTP request instead of a regular HTTP request? If so, how can we do this?

+4
source share
1 answer

Although it says that you can extend the GenericServlet to use protocols other than HTTP, you cannot. There is no implementation that manages the network, especially since FTP is a state protocol.

I would suggest implementing something like Apache Mina Ftp Server ( http://mina.apache.org/ftpserver-project/ ) to handle this for you.

+5
source

All Articles