Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to Handle ftp request using servlet?

Tags:

java

servlets

Is it possible to write a servlet which handles FTP request instead of usual HTTP request?, If yes, how can we do this?

like image 470
Ankit Avatar asked Sep 26 '11 12:09

Ankit


1 Answers

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.

like image 91
klaustopher Avatar answered Sep 18 '22 10:09

klaustopher