org.nuxeo.ecm.webapp.shield
Class SeamExceptionHandlingListener
java.lang.Object
org.nuxeo.ecm.platform.web.common.exceptionhandling.service.NullExceptionHandlingListener
org.nuxeo.ecm.webapp.shield.SeamExceptionHandlingListener
- All Implemented Interfaces:
- ExceptionHandlingListener
public class SeamExceptionHandlingListener
- extends NullExceptionHandlingListener
Plays with conversations, trying to rollback transaction.
- Author:
- arussel
SeamExceptionHandlingListener
public SeamExceptionHandlingListener()
beforeSetErrorPageAttribute
public void beforeSetErrorPageAttribute(Throwable t,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
- Initiates a mock faces context when needed and tries to restore current
conversation
- Specified by:
beforeSetErrorPageAttribute
in interface ExceptionHandlingListener
- Overrides:
beforeSetErrorPageAttribute
in class NullExceptionHandlingListener
- Throws:
IOException
ServletException
startHandling
public void startHandling(Throwable t,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
- Rollbacks transaction if necessary
- Specified by:
startHandling
in interface ExceptionHandlingListener
- Overrides:
startHandling
in class NullExceptionHandlingListener
- Throws:
ServletException
afterDispatch
public void afterDispatch(Throwable t,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
- Cleans up context created in
beforeSetErrorPageAttribute(Throwable, HttpServletRequest, HttpServletResponse)
when needed.
- Specified by:
afterDispatch
in interface ExceptionHandlingListener
- Overrides:
afterDispatch
in class NullExceptionHandlingListener
- Throws:
IOException
ServletException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.