Each FTA daemon contains a rather complete extensible HTTP server. The extensions are subclasses of the class jfta.http.FTAServlet. See various examples in the jfta.http and jfta.bootstrap directories.
The jFTAHTTP server can be used standalone. Check the code and additional remarks in the jfta.http directory.