开发者

Servlet requests

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜