public class ServletResponseMethodArgumentResolver extends Object implements org.springframework.web.method.support.HandlerMethodArgumentResolver
| Constructor and Description |
|---|
ServletResponseMethodArgumentResolver() |
| 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)
Set
ModelAndViewContainer.setRequestHandled(boolean) to
false to indicate that the method signature provides access
to the response. |
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter) |
public ServletResponseMethodArgumentResolver()
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
supportsParameter in interface org.springframework.web.method.support.HandlerMethodArgumentResolverpublic 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) throws IOException
ModelAndViewContainer.setRequestHandled(boolean) to
false to indicate that the method signature provides access
to the response. If subsequently the underlying method returns
null, the request is considered directly handled.resolveArgument in interface org.springframework.web.method.support.HandlerMethodArgumentResolverIOException