Class VSpringMvcErrorInterceptor

java.lang.Object
io.vertigo.ui.impl.springmvc.config.interceptors.VSpringMvcErrorInterceptor
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor

public final class VSpringMvcErrorInterceptor extends Object implements org.springframework.web.servlet.HandlerInterceptor
Spring handle errors in a dedicated thread so we must put back our session in the threadLocal.
  • Constructor Details

    • VSpringMvcErrorInterceptor

      public VSpringMvcErrorInterceptor()
  • Method Details

    • preHandle

      public boolean preHandle(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler) throws Exception
      Specified by:
      preHandle in interface org.springframework.web.servlet.HandlerInterceptor
      Throws:
      Exception
    • afterCompletion

      public void afterCompletion(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, Exception ex) throws Exception
      Specified by:
      afterCompletion in interface org.springframework.web.servlet.HandlerInterceptor
      Throws:
      Exception