Basic HTML version of Foils prepared May 19 99

Foil 17 HTTPServlet

From Overview of JDBC: Java Database Connectivity Java Servlets -- Spring Semester 1999. by Nancy McCracken


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.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Mon Jul 5 1999