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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) OpenCms servlet main request handling method.voidinit(javax.servlet.ServletConfig config) protected voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Methods inherited from class org.opencms.main.OpenCmsServlet
doPost, getHandlerNames, getRequestCache, handle, invokeHandler, openErrorHandler, withRequestCacheMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, serviceMethods inherited from class javax.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(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws IOException, javax.servlet.ServletException OpenCms servlet main request handling method.- Overrides:
doGetin classOpenCmsServlet- Throws:
IOExceptionjavax.servlet.ServletException- See Also:
-
init
- Specified by:
initin interfacejavax.servlet.Servlet- Overrides:
initin classOpenCmsServlet- See Also:
-
service
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Overrides:
servicein classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException- See Also:
-