Package org.opencms.main
Class OpenCmsServletErrorHandler
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.opencms.main.OpenCmsServlet
org.opencms.main.OpenCmsServletErrorHandler
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.main.OpenCmsServlet
OpenCmsServlet.RequestCache, OpenCmsServlet.RequestInfo -
Field Summary
Fields inherited from class org.opencms.main.OpenCmsServlet
activeRequests, currentRequestStack, HANDLE_BUILTIN_SERVICE, HANDLE_GWT, HANDLE_PATH, SERVLET_PARAM_DEFAULT_WEB_APPLICATION, SERVLET_PARAM_OPEN_CMS_HOME, SERVLET_PARAM_OPEN_CMS_SERVLET, SERVLET_PARAM_WEB_APPLICATION_CONTEXTFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) OpenCms servlet main request handling method.voidinit(jakarta.servlet.ServletConfig config) protected voidservice(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) Methods inherited from class org.opencms.main.OpenCmsServlet
doPost, getHandlerNames, getRequestCache, handle, invokeHandler, openErrorHandler, withRequestCacheMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, logMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.main.I_CmsRequestHandler
getConfiguration, initParameters
-
Constructor Details
-
OpenCmsServletErrorHandler
public OpenCmsServletErrorHandler()
-
-
Method Details
-
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException, jakarta.servlet.ServletException OpenCms servlet main request handling method.- Overrides:
doGetin classOpenCmsServlet- Throws:
IOExceptionjakarta.servlet.ServletException- See Also:
-
init
- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classOpenCmsServlet- See Also:
-
service
protected void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Overrides:
servicein classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException- See Also:
-