Class sun.server.http.ErrorServlet
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.http.ErrorServlet

java.lang.Object
   |
   +----java.servlet.GenericServlet
           |
           +----java.servlet.http.HttpServlet
                   |
                   +----sun.server.http.ErrorServlet

public class ErrorServlet
extends HttpServlet
Error Servlet lets you customize the errors in two fashions: Server administrator can: 1. Put a customized page in errors directory OR 2. Replace a servlet with his own error handling servlet, for dynamically generated error content.

Constructor Index

 o ErrorServlet()
Constructor

Method Index

 o getServletInfo()
Returns a string containing information about the author, version, and copyright of the servlet.
 o init(ServletStub)
Initializes the servlet.
 o service(HttpServletRequest, HttpServletResponse)
This servlet returns what the error code maps to.

Constructors

 o ErrorServlet
  public ErrorServlet()
Constructor

Methods

 o init
  public void init(ServletStub stub) throws ServletException
Initializes the servlet.
Overrides:
init in class GenericServlet
 o service
  public void service(HttpServletRequest req,
                      HttpServletResponse res) throws IOException
This servlet returns what the error code maps to. Anyone can override this routine to provide your favourite spell-checking module aka perl script :)
Overrides:
service in class HttpServlet
 o getServletInfo
  public String getServletInfo()
Returns a string containing information about the author, version, and copyright of the servlet.
Overrides:
getServletInfo in class GenericServlet

All Packages  Class Hierarchy  This Package  Previous  Next  Index