Package org.opencms.main
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:
-
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_CONTEXT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doGet
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) OpenCms servlet main request handling method.void
init
(javax.servlet.ServletConfig config) protected void
service
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Methods inherited from class org.opencms.main.OpenCmsServlet
doPost, getHandlerNames, getRequestCache, handle, invokeHandler, openErrorHandler, withRequestCache
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.main.I_CmsRequestHandler
getConfiguration, initParameters
-
Constructor Details
-
OpenCmsServletErrorHandler
public OpenCmsServletErrorHandler()
-
-
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 classOpenCmsServlet
- Throws:
IOException
javax.servlet.ServletException
- See Also:
-
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
-
init
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classOpenCmsServlet
- 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 classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
- See Also:
-
HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
-