in Servlet which types of requst (protocols)will handle. ?
i mean , htt开发者_运维技巧p, https,
The servlet framework is designed to be more general than that - in theory, a servlet container could handle requests for Finger, Gopher, FTP etc. That's why we have HttpServlet
as a subclass of GenericServlet
which implements Servlet
. (HttpServlet
is designed to handle https as well as http.)
In practice, I don't think I've seen any production servlets handling non-http(s) traffic, although I dare say they exist :) (Although I've just found this finger implementation.)
HTTP and HTTPS has nothing different to the servlet container after the connection establishes, so both HTTP and HTTPS are handled by Servlet.
精彩评论