Class ExceptionHandlingComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.web.common.exceptionhandling.service.ExceptionHandlingComponent
- All Implemented Interfaces:
ExceptionHandlingService
,Adaptable
,Component
,Extensible
,TimestampedService
public class ExceptionHandlingComponent
extends DefaultComponent
implements ExceptionHandlingService
- Author:
- arussel, Benjamin JALON
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected NuxeoExceptionHandler
protected final NuxeoExceptionHandlerParameters
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
forwardToErrorPage
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Throwable t) protected <T> T
newInstance
(Class<T> klass) void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
exceptionHandler
-
exceptionHandlerParameters
-
-
Constructor Details
-
ExceptionHandlingComponent
public ExceptionHandlingComponent()
-
-
Method Details
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
newInstance
-
forwardToErrorPage
public void forwardToErrorPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Throwable t) throws IOException, javax.servlet.ServletException - Specified by:
forwardToErrorPage
in interfaceExceptionHandlingService
- Throws:
IOException
javax.servlet.ServletException
-
getExceptionHandler
- Specified by:
getExceptionHandler
in interfaceExceptionHandlingService
-