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 classExceptionHandlingComponent.ExtensionPoint
-
Field Summary
Fields Modifier and Type Field Description protected NuxeoExceptionHandlerexceptionHandlerprotected NuxeoExceptionHandlerParametersexceptionHandlerParameters-
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 voidforwardToErrorPage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Throwable t)NuxeoExceptionHandlergetExceptionHandler()protected <T> TnewInstance(Class<T> klass)voidregisterContribution(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:
registerContributionin 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:
forwardToErrorPagein interfaceExceptionHandlingService- Throws:
IOExceptionjavax.servlet.ServletException
-
getExceptionHandler
public NuxeoExceptionHandler getExceptionHandler()
- Specified by:
getExceptionHandlerin interfaceExceptionHandlingService
-
-