Reputation: 1187
in Servlet which types of requst (protocols)will handle. ?
i mean , http, https,
Upvotes: 1
Views: 213
Reputation: 954
HTTP and HTTPS has nothing different to the servlet container after the connection establishes, so both HTTP and HTTPS are handled by Servlet.
Upvotes: 0
Reputation: 1500515
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.)
Upvotes: 3