Appendix A. Servlet API Quick Reference
The
javax.servlet
package is the core of the Servlet API. It includes the basic
Servlet
interface, which all servlets must
implement in one form or another, and an abstract
GenericServlet
class for developing basic
servlets. This package also includes classes for communication with
the host server and client (ServletRequest
and
ServletResponse
) and communicating with the client
(ServletInputStream
and
ServletOutputStream
). The class hierarchy of the
javax.servlet
package is shown in Figure 1.1. Servlets should confine themselves to the
classes in this package in situations where the underlying protocol
is unknown.
Figure A-1. The javax.servlet package
Get Java Servlet Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.