This subclass of GenericServlet provides automatic separation of requests according to the HTTP type of request:
-
GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT, OPTIONS
|
The service method of HTTPLservlet checks the type of request and calls one of several special methods if they are present:
-
doGet, doHead, doDelete, doOptions, doPost, doTrace
-
Note that if you supply a doGet method, the service method can use if for doHead, doTrace and doOptions as well by extracting header information.
|
doGet and doPost methods should read request data, set response headers and write response data.
|