com.ervacon.springframework.web.servlet.mvc.webflow
Class SubFlowBackNavigationExceptionResolver
java.lang.Object
com.ervacon.springframework.web.servlet.mvc.webflow.SubFlowBackNavigationExceptionResolver
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, org.springframework.web.servlet.HandlerExceptionResolver
- public class SubFlowBackNavigationExceptionResolver
- extends java.lang.Object
- implements org.springframework.web.servlet.HandlerExceptionResolver, org.springframework.context.ApplicationContextAware
Exception resolver that tries to resolve navigation problems
with sub flows resulting from the use of the browser Back button.
The strategy employed by this exception resolver is to retry the
request after popping the top flow from the flow memento stack. This is
not a 100% full proof technique, but it does help in a lot of cases.
- Author:
- Erwin Vervaet
- See Also:
NavigationException
|
Field Summary |
protected org.apache.commons.logging.Log |
log
|
|
Method Summary |
org.springframework.web.servlet.ModelAndView |
resolveException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler,
java.lang.Exception ex)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final org.apache.commons.logging.Log log
SubFlowBackNavigationExceptionResolver
public SubFlowBackNavigationExceptionResolver()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
resolveException
public org.springframework.web.servlet.ModelAndView resolveException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler,
java.lang.Exception ex)
- Specified by:
resolveException in interface org.springframework.web.servlet.HandlerExceptionResolver