public class RedirectAttributesMethodArgumentResolver extends Object implements org.springframework.web.method.support.HandlerMethodArgumentResolver
RedirectAttributes
.
This resolver must be listed ahead of
ModelMethodProcessor
and
MapMethodProcessor
,
which support Map
and Model
arguments both of which are
"super" types of RedirectAttributes
and would also attempt to
resolve a RedirectAttributes
argument.
Constructor and Description |
---|
RedirectAttributesMethodArgumentResolver() |
Modifier and Type | Method and Description |
---|---|
Object |
resolveArgument(org.springframework.core.MethodParameter parameter,
org.springframework.web.method.support.ModelAndViewContainer mavContainer,
org.springframework.web.context.request.NativeWebRequest webRequest,
org.springframework.web.bind.support.WebDataBinderFactory binderFactory) |
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter) |
public RedirectAttributesMethodArgumentResolver()
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
supportsParameter
in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
public Object resolveArgument(org.springframework.core.MethodParameter parameter, @Nullable org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, @Nullable org.springframework.web.bind.support.WebDataBinderFactory binderFactory) throws Exception
resolveArgument
in interface org.springframework.web.method.support.HandlerMethodArgumentResolver
Exception