# Uses of Class
org.springframework.web.method.support.ModelAndViewContainer

Packages that use ModelAndViewContainer
Package
Description
org.springframework.web.method.annotation
Support classes for annotation-based handler method processing.
org.springframework.web.method.support
Generic support classes for handler method processing.

## Uses of ModelAndViewContainer in org.springframework.web.method.annotation

Methods in org.springframework.web.method.annotation with parameters of type ModelAndViewContainer
Modifier and Type
Method
Description
`protected void`
AbstractNamedValueMethodArgumentResolver.`handleResolvedValue(Object arg, String name, org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest)`
Invoked after a value is resolved.
`void`
MapMethodProcessor.`handleReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest)`
`void`
ModelAttributeMethodProcessor.`handleReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest)`
Add non-null return values to the `ModelAndViewContainer`.
`void`
ModelMethodProcessor.`handleReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest)`
`void`
ModelFactory.`initModel(NativeWebRequest request, ModelAndViewContainer container, HandlerMethod handlerMethod)`
Populate the model in the following order: Retrieve "known" session attributes listed as `@SessionAttributes`.
`final Object`
AbstractNamedValueMethodArgumentResolver.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
`Object`
AbstractWebArgumentResolverAdapter.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
Delegate to the `WebArgumentResolver` instance.
`Object`
ErrorsMethodArgumentResolver.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
`Object`
MapMethodProcessor.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
`final Object`
ModelAttributeMethodProcessor.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
Resolve the argument from the model or if not found instantiate it with its default if it is available.
`Object`
ModelMethodProcessor.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
`Object`
RequestHeaderMapMethodArgumentResolver.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
`Object`
RequestParamMapMethodArgumentResolver.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
`Object`
SessionStatusMethodArgumentResolver.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
`void`
ModelFactory.`updateModel(NativeWebRequest request, ModelAndViewContainer container)`
Promote model attributes listed as `@SessionAttributes` to the session.

## Uses of ModelAndViewContainer in org.springframework.web.method.support

Methods in org.springframework.web.method.support that return ModelAndViewContainer
Modifier and Type
Method
Description
`ModelAndViewContainer`
ModelAndViewContainer.`addAllAttributes(Map<String,?> attributes)`
Copy all attributes to the underlying model.
`ModelAndViewContainer`
ModelAndViewContainer.`addAttribute(Object value)`
Add the supplied attribute to the underlying model.
`ModelAndViewContainer`
ModelAndViewContainer.`addAttribute(String name, Object value)`
Add the supplied attribute to the underlying model.
`ModelAndViewContainer`
ModelAndViewContainer.`mergeAttributes(Map<String,?> attributes)`
Copy attributes in the supplied `Map` with existing objects of the same name taking precedence (i.e.
`ModelAndViewContainer`
ModelAndViewContainer.`removeAttributes(Map<String,?> attributes)`
Remove the given attributes from the model.
Methods in org.springframework.web.method.support with parameters of type ModelAndViewContainer
Modifier and Type
Method
Description
`protected Object[]`
InvocableHandlerMethod.`getMethodArgumentValues(NativeWebRequest request, ModelAndViewContainer mavContainer, Object... providedArgs)`
Get the method argument values for the current request, checking the provided argument values and falling back to the configured argument resolvers.
`void`
HandlerMethodReturnValueHandler.`handleReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest)`
Handle the given return value by adding attributes to the model and setting a view or setting the `setRequestHandled(boolean)` flag to `true` to indicate the response has been handled directly.
`void`
HandlerMethodReturnValueHandlerComposite.`handleReturnValue(Object returnValue, org.springframework.core.MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest)`
Iterate over registered `HandlerMethodReturnValueHandlers` and invoke the one that supports it.
`Object`
InvocableHandlerMethod.`invokeForRequest(NativeWebRequest request, ModelAndViewContainer mavContainer, Object... providedArgs)`
Invoke the method after resolving its argument values in the context of the given request.
`Object`
HandlerMethodArgumentResolver.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
Resolves a method parameter into an argument value from a given request.
`Object`
HandlerMethodArgumentResolverComposite.`resolveArgument(org.springframework.core.MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
Iterate over registered `HandlerMethodArgumentResolvers` and invoke the one that supports it.