A GenericServlet has a service() method aimed to handle requests.
HttpServlet extends GenericServlet and adds support for
doGet()
doPost()
doHead() methods (HTTP 1.0) plus doPut()
doOptions(), doDelete(), doTrace() methods (HTTP 1.1).
Both these classes are abstract.
HttpServlet extends GenericServlet and adds support for
doGet()
doPost()
doHead() methods (HTTP 1.0) plus doPut()
doOptions(), doDelete(), doTrace() methods (HTTP 1.1).
Both these classes are abstract.
No comments:
Post a Comment