Class OpenCmsServletErrorHandler

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.opencms.main.OpenCmsServlet
org.opencms.main.OpenCmsServletErrorHandler
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, I_CmsRequestHandler

This the error handler servlet of the OpenCms system.

This almost 1:1 extends the "standard" OpenCmsServlet. By default, all errors are handled by this servlet, which is controlled by the setting in the shipped web.xml.

This servlet is required because certain servlet containers (eg. BEA Weblogic) can not handler the error with the same servlet that produced the error.

Since:
6.2.0
See Also:
  • Constructor Details

  • Method Details

    • doGet

      public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException, javax.servlet.ServletException
      OpenCms servlet main request handling method.

      Overrides:
      doGet in class OpenCmsServlet
      Throws:
      IOException
      javax.servlet.ServletException
      See Also:
      • HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
    • init

      public void init(javax.servlet.ServletConfig config)
      Specified by:
      init in interface javax.servlet.Servlet
      Overrides:
      init in class OpenCmsServlet
      See Also:
      • Servlet.init(javax.servlet.ServletConfig)
    • service

      protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
      Overrides:
      service in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException
      See Also:
      • HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)