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
Method Summary |
void |
afterDispatch(java.lang.Throwable t,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Cleans up context created in
beforeSetErrorPageAttribute(Throwable, HttpServletRequest, HttpServletResponse)
when needed. |
void |
beforeSetErrorPageAttribute(java.lang.Throwable t,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Initiates a mock faces context when needed and tries to restore current
conversation |
void |
startHandling(java.lang.Throwable t,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Rollbacks transaction if necessary |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SeamExceptionHandlingListener
public SeamExceptionHandlingListener()
beforeSetErrorPageAttribute
public void beforeSetErrorPageAttribute(java.lang.Throwable t,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.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:
java.io.IOException
javax.servlet.ServletException
startHandling
public void startHandling(java.lang.Throwable t,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException
- Rollbacks transaction if necessary
- Specified by:
startHandling
in interface ExceptionHandlingListener
- Overrides:
startHandling
in class NullExceptionHandlingListener
- Throws:
javax.servlet.ServletException
afterDispatch
public void afterDispatch(java.lang.Throwable t,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
- Cleans up context created in
beforeSetErrorPageAttribute(Throwable, HttpServletRequest, HttpServletResponse)
when needed.
- Specified by:
afterDispatch
in interface ExceptionHandlingListener
- Overrides:
afterDispatch
in class NullExceptionHandlingListener
- Throws:
java.io.IOException
javax.servlet.ServletException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.