Name
Package javax.servlet
Synopsis
The javax.servlet
package is the core of the
Servlet API. It contains the classes necessary for a standard,
protocol-independent servlet or filter. In addition, it provides a
helper class, GenericServlet
, to make it easier to
implement the Servlet
interface. As of version 2.3
of the Servlet API, this package also includes the interfaces and
classes to support filters for request pre- and post-processing.
In Servlet 2.2, the concept of a Web Application was formalized. Hence,
the javax.servlet
package also includes classes to allow
servlets to interact with their parent application via the
ServletContext
object. Version 2.3 added an event
listener to web applications, allowing developers to register classes that
participate in the web application’s lifecycle.
Interfaces
Filter
FilterChain
FilterConfig
RequestDispatcher
Servlet
ServletConfig
ServletContext
ServletRequest
ServletResponse
SingleThreadModel
Events
ServletContextEvent
ServletContextAttributeEvent
Event Listeners
ServletContextAttributeListener
ServletContextListener
Other Classes
GenericServlet
,ServletConfig
,Serializable;
ServletInputStream
ServletOutputStream
ServletRequestWrapper
ServletResponseWrapper
Exceptions
ServletException
UnavailableException
Get Java Enterprise in a Nutshell, Second Edition 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.