Package org.apereo.cas.web
Class FlowExecutionExceptionResolver
- java.lang.Object
-
- org.apereo.cas.web.FlowExecutionExceptionResolver
-
- All Implemented Interfaces:
org.springframework.web.servlet.HandlerExceptionResolver
public class FlowExecutionExceptionResolver extends java.lang.Object implements org.springframework.web.servlet.HandlerExceptionResolverTheFlowExecutionExceptionResolvercatches theFlowExecutionRepositoryExceptionthrown by Spring Webflow when the given flow id no longer exists. This can occur if a particular flow has reached an end state (the id is no longer valid)It will redirect back to the requested URI which should start a new workflow.
- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description FlowExecutionExceptionResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.servlet.ModelAndViewresolveException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, java.lang.Exception exception)Since FlowExecutionRepositoryException is a common ancestor to these exceptions and other error cases we would likely want to hide from the user, it seems reasonable to check for FlowExecutionRepositoryException.
-
-
-
Method Detail
-
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 exception)Since FlowExecutionRepositoryException is a common ancestor to these exceptions and other error cases we would likely want to hide from the user, it seems reasonable to check for FlowExecutionRepositoryException.BadlyFormattedFlowExecutionKeyException is specifically ignored by this handler because redirecting to the requested URI with this exception may cause an infinite redirect loop (i.e. when invalid "execution" parameter exists as part of the query string
- Specified by:
resolveExceptionin interfaceorg.springframework.web.servlet.HandlerExceptionResolver
-
-