Class CmsDefaultErrorHandlerServlet
java.lang.Object
javax.servlet.GenericServlet
org.apache.sling.api.servlets.SlingSafeMethodsServlet
org.apache.sling.cms.core.internal.servlets.CmsDefaultErrorHandlerServlet
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class CmsDefaultErrorHandlerServlet
extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
Servlet which includes the content of the page when the page is accessed.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe page to fall back to if there is not an error page for the specific codestatic final StringService User Name for the Error Handlerstatic final StringThe subpath under which to find the error pagesstatic final StringPath under which the error pages for Sling CMS can be found. -
Constructor Summary
ConstructorsConstructorDescriptionCmsDefaultErrorHandlerServlet(org.apache.sling.api.resource.ResourceResolverFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidservice(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doGet, doHead, doOptions, doTrace, getAllowedRequestMethods, getServletInfo, handleMethodNotImplemented, mayService, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
-
Field Details
-
DEFAULT_ERROR_PAGE
The page to fall back to if there is not an error page for the specific code- See Also:
-
SERVICE_USER_NAME
Service User Name for the Error Handler- See Also:
-
SITE_ERRORS_SUBPATH
The subpath under which to find the error pages- See Also:
-
SLING_CMS_ERROR_PATH
Path under which the error pages for Sling CMS can be found.- See Also:
-
-
Constructor Details
-
CmsDefaultErrorHandlerServlet
public CmsDefaultErrorHandlerServlet(org.apache.sling.api.resource.ResourceResolverFactory factory)
-
-
Method Details
-
service
public void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res) throws IOException - Specified by:
servicein interfacejavax.servlet.Servlet- Overrides:
servicein classorg.apache.sling.api.servlets.SlingSafeMethodsServlet- Throws:
IOException
-