org.springmodules.validation.valang.javascript.taglib
Class ValangRulesExportInterceptor
java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
org.springmodules.validation.valang.javascript.taglib.ValangRulesExportInterceptor
- All Implemented Interfaces:
- HandlerInterceptor
public class ValangRulesExportInterceptor
- extends HandlerInterceptorAdapter
Spring MVC interceptor implementation that will automatically export Valang
validation rules that are used by any of the intercepted handlers into
the the ModelAndView so that they are accessible to the custom tag
ValangValidateTag
.
Does nothing if the intercepted handler is neither an instance of
BaseCommandController
, nor a proxied BaseCommandController
.
This will also do nothing if the handler did not export a command object
into the model. Obviously the rules will only be picked up from all validators of type ValangValidator
.
- Author:
- Oliver Hutchison, Uri Boness, Colin Yates
- See Also:
ValangValidateTag
,
ValangValidator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValangRulesExportInterceptor
public ValangRulesExportInterceptor()
postHandle
public void postHandle(HttpServletRequest request,
HttpServletResponse response,
Object handler,
ModelAndView modelAndView)
throws Exception
- Specified by:
postHandle
in interface HandlerInterceptor
- Overrides:
postHandle
in class HandlerInterceptorAdapter
- Throws:
Exception
Copyright © 2009. All Rights Reserved.