开发者

Servlet requests

开发者 https://www.devze.com 2023-01-23 00:52 出处:网络
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 ha

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

精彩评论

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