简体   繁体   中英

Servlet requests

in Servlet which types of requst (protocols)will handle. ?

i mean , http, 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和HTTPS与Servlet容器没有什么不同,因此HTTP和HTTPS均由Servlet处理。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM