InfoCenter Home >
4: Developing applications >
4.2: Building Web applications >
4.2.1: Developing servlets >
4.2.1.2: Servlet support and environment in WebSphere >
4.2.1.2.2: IBM extensions to the Servlet API
4.2.1.2.2: IBM extensions to the Servlet API
The Application Server includes its own packages that extend and add to the
Java Servlet API. Those extensions and additions make it easier to manage
session state, create personalized Web pages, generate better servlet error reports, and access databases. The Javadoc for the Application Server APIs is installed in the product product_installation_root\web\apidocs directory.
The Application Server API packages and classes are:
- com.ibm.servlet.personalization.sessiontracking package
This Application Server extension to the Java Servlet API records the referral
page that led a visitor to your Web site, tracks the visitor's position
within the site, and associates user identification with the session. IBM
has also added session clustering support to the API.
- com.ibm.websphere.servlet.session.IBMSession interface
Extends HttpSession for session support and increased Web
administrators' control in a session cluster environment.
- com.ibm.servlet.personalization.userprofile package
Provides an interface for maintaining detailed information about your Web visitors
and incorporate it in your Web applications, so that you can provide a
personalized user experience. This information is made persistent by
storing it in a database.
- com.ibm.websphere.userprofile package
User profile enhancements
- com.ibm.websphere.servlet.error.ServletErrorReport class
A class that enables the application to provide more detailed and tailored
messages to the client when errors occur. See the enhanced servlet error
reporting article, 4.2.1.3.5, for details.
- com.ibm.websphere.servlet.event package
Provides listener interfaces for notifications of application lifecycle events,
servlet lifecycle events, and servlet errors. The package also includes an interface
for registering listeners. See the package Javadoc for details.
- com.ibm.websphere.servlet.filter package
Provides classes that support servlet chaining. The package includes the ChainerServlet, the ServletChain object, and the ChainResponse object. See
the servlet filtering article, 4.2.1.3.4,
for more details.
- com.ibm.websphere.servlet.request package
Provides an abstract class, HttpServletRequestProxy, for overloading
the servlet engine's HttpServletRequest object. The overloaded request object
is forwarded to another servlet for processing. The package also includes the
ServletInputStreamAdapter class for converting an InputStream into
a ServletInputStream and proxying all method calls to the underlying InputStream.
See the Javadoc for details and examples.
- com.ibm.websphere.servlet.response package
Provides an abstract class, HttpServletResponseProxy, for overloading
the servlet engine's HttpServletResponse object. The overloaded response object
is forwarded to another servlet for processing. The package includes the
ServletOutputStreamAdapter class for converting an OutputStream into a
ServletOutputStream and proxying all method calls to the underlying OutputStream.
The package also includes the StoredResponse object that is useful
for caching a servlet response that contains data that is not expected to
change for a period of time, for example, a weather forecast.
See the Javadoc for details and examples.
|
|