preHandle
public boolean preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler)
throws java.lang.Exception
This method is being invoked just before the request is forwarded the the relevant controller.
It should always return true, so the request will be processed in any case of failure.
- Specified by:
preHandle
in interface org.springframework.web.servlet.HandlerInterceptor
- Overrides:
preHandle
in class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
- Throws:
java.lang.Exception