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.
-
ErrorServlet()
- Constructor
-
getServletInfo()
- Returns a string containing information about the author, version,
and copyright of the servlet.
-
init(ServletStub)
- Initializes the servlet.
-
service(HttpServletRequest, HttpServletResponse)
- This servlet returns what the error code maps to.
ErrorServlet
public ErrorServlet()
- Constructor
init
public void init(ServletStub stub) throws ServletException
- Initializes the servlet.
- Overrides:
- init in class GenericServlet
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
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