Is it possible to Handle ftp request using servlet?
Is it possible to write a servlet which handles FTP request instead of usual HTTP开发者_如何学C request?, If yes, how can we do this?
Although it says that you can extend GenericServlet
to use other protocols than HTTP - you can't. There's no implementation that handles the networking, especially since FTP is a statefull protocol.
I would suggest implementing something like the Apache Mina Ftp Server (http://mina.apache.org/ftpserver-project/) to handle that for you.
精彩评论