Class VSpringMvcControllerAdvice
- java.lang.Object
-
- io.vertigo.ui.impl.springmvc.controller.VSpringMvcControllerAdvice
-
@ControllerAdvice(assignableTypes=AbstractVSpringMvcController.class) public final class VSpringMvcControllerAdvice extends Object
-
-
Constructor Summary
Constructors Constructor Description VSpringMvcControllerAdvice()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Object
handleSessionException(io.vertigo.account.authorization.VSecurityException ex, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static Object
handleSessionException(SessionException ex, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static Object
handleThrowable(Throwable th, javax.servlet.http.HttpServletRequest request)
static Object
handleValidationUserException(ValidationUserException ex, javax.servlet.http.HttpServletRequest request)
static Object
handleVUserException(io.vertigo.core.lang.VUserException ex, javax.servlet.http.HttpServletRequest request)
void
mapRequestParams(ViewContextMap viewContextMap, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest request)
static void
storeContext(org.springframework.ui.Model model)
-
-
-
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.vega.webservice.exception.SessionException.class) @ResponseStatus(UNAUTHORIZED) public static Object handleSessionException(SessionException ex, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Throwable
- Throws:
Throwable
-
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
-
handleThrowable
@ResponseBody @ExceptionHandler(java.lang.Throwable.class) @ResponseStatus(INTERNAL_SERVER_ERROR) public static Object handleThrowable(Throwable th, javax.servlet.http.HttpServletRequest request) throws Throwable
- Throws:
Throwable
-
handleValidationUserException
@ResponseBody @ExceptionHandler(io.vertigo.vega.webservice.validation.ValidationUserException.class) @ResponseStatus(UNPROCESSABLE_ENTITY) public static Object handleValidationUserException(ValidationUserException ex, javax.servlet.http.HttpServletRequest request)
-
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)
-
-