HTTPServlet
This subclass of GenericServlet provides additional services based on the HTTP protocol.
It separates requests into the different types of request methods.
- 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.