public class SeamExceptionHandlingListener extends NullExceptionHandlingListener
Constructor and Description |
---|
SeamExceptionHandlingListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterDispatch(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(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(Throwable t,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Rollbacks transaction if necessary
|
beforeForwardToErrorPage
public void beforeSetErrorPageAttribute(Throwable t, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
beforeSetErrorPageAttribute
in interface ExceptionHandlingListener
beforeSetErrorPageAttribute
in class NullExceptionHandlingListener
IOException
javax.servlet.ServletException
public void startHandling(Throwable t, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
startHandling
in interface ExceptionHandlingListener
startHandling
in class NullExceptionHandlingListener
javax.servlet.ServletException
public void afterDispatch(Throwable t, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
beforeSetErrorPageAttribute(Throwable, HttpServletRequest, HttpServletResponse)
when needed.afterDispatch
in interface ExceptionHandlingListener
afterDispatch
in class NullExceptionHandlingListener
IOException
javax.servlet.ServletException
Copyright © 2015 Nuxeo SA. All rights reserved.