Class VSpringMvcControllerAdvice

    • Constructor Detail

      • VSpringMvcControllerAdvice

        public VSpringMvcControllerAdvice()
    • Method Detail

      • storeContext

        @ModelAttribute
        public static void storeContext​(org.springframework.ui.Model model)
      • mapRequestParams

        @ModelAttribute
        public void mapRequestParams​(@ModelAttribute("model")
                                     ViewContextMap viewContextMap,
                                     org.springframework.ui.Model model,
                                     javax.servlet.http.HttpServletRequest request)
      • handleSessionException

        @ResponseBody
        @ExceptionHandler(io.vertigo.account.authorization.VSecurityException.class)
        @ResponseStatus(FORBIDDEN)
        public static Object handleSessionException​(io.vertigo.account.authorization.VSecurityException ex,
                                                    javax.servlet.http.HttpServletRequest request,
                                                    javax.servlet.http.HttpServletResponse response)
                                             throws Throwable
        Throws:
        Throwable
      • handleVUserException

        @ResponseBody
        @ExceptionHandler(io.vertigo.core.lang.VUserException.class)
        @ResponseStatus(UNPROCESSABLE_ENTITY)
        public static Object handleVUserException​(io.vertigo.core.lang.VUserException ex,
                                                  javax.servlet.http.HttpServletRequest request)