org.springjutsu.validation.mvc
Class SuccessViewHandlerInterceptor
java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
org.springjutsu.validation.mvc.SuccessViewHandlerInterceptor
- All Implemented Interfaces:
- org.springframework.web.servlet.HandlerInterceptor
public class SuccessViewHandlerInterceptor
- extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
Handles the implementation of the @link{SuccessView} annotation.
Self-registering bean that places itself at the end of the interceptor
chain on a handler adapter.
- Author:
- Clark Duplichien
|
Method Summary |
void |
postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
org.springframework.web.servlet.ModelAndView modelAndView)
Responsible for redirecting to the view defined
in the @link{SuccessView} annotation on the current
handler method. |
| Methods inherited from class org.springframework.web.servlet.handler.HandlerInterceptorAdapter |
afterCompletion, preHandle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SuccessViewHandlerInterceptor
public SuccessViewHandlerInterceptor()
postHandle
public void postHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
org.springframework.web.servlet.ModelAndView modelAndView)
throws Exception
- Responsible for redirecting to the view defined
in the @link{SuccessView} annotation on the current
handler method.
In the event that there are multiple possible
success paths defined for the success view,
will attempt to isolate the closest matching
url-path key and redirect to the value path,
as described in @link{SuccessView}
- Specified by:
postHandle in interface org.springframework.web.servlet.HandlerInterceptor- Overrides:
postHandle in class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
- Throws:
Exception
Copyright © 2013 Spring Jutsu. All Rights Reserved.