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
Nested Classes Modifier and Type Class Description static class
ExceptionHandlingComponent.ExtensionPoint
-
Field Summary
Fields Modifier and Type Field Description protected NuxeoExceptionHandler
exceptionHandler
protected NuxeoExceptionHandlerParameters
exceptionHandlerParameters
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description ExceptionHandlingComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forwardToErrorPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Throwable t)
NuxeoExceptionHandler
getExceptionHandler()
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
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
exceptionHandler
protected NuxeoExceptionHandler exceptionHandler
-
exceptionHandlerParameters
protected final NuxeoExceptionHandlerParameters exceptionHandlerParameters
-
-
Method Detail
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
registerContribution
in classDefaultComponent
-
newInstance
protected <T> T newInstance(Class<T> klass)
-
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
public NuxeoExceptionHandler getExceptionHandler()
- Specified by:
getExceptionHandler
in interfaceExceptionHandlingService
-
-