Uses of Class
org.springframework.web.method.support.ModelAndViewContainer
Package
Description
Support classes for annotation-based handler method processing.
Generic support classes for handler method processing.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.-
Uses of ModelAndViewContainer in org.springframework.web.method.annotation
Modifier and TypeMethodDescriptionprotected void
AbstractNamedValueMethodArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Invoked after a value is resolved.void
MapMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ModelAttributeMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Add non-null return values to theModelAndViewContainer
.void
ModelMethodProcessor.handleReturnValue
(Object returnValue, 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
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) AbstractWebArgumentResolverAdapter.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Delegate to theWebArgumentResolver
instance.ErrorsMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) MapMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) final Object
ModelAttributeMethodProcessor.resolveArgument
(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.ModelMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RequestHeaderMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RequestParamMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) SessionStatusMethodArgumentResolver.resolveArgument
(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
Modifier and TypeMethodDescriptionModelAndViewContainer.addAllAttributes
(Map<String, ?> attributes) Copy all attributes to the underlying model.ModelAndViewContainer.addAttribute
(Object value) Add the supplied attribute to the underlying model.ModelAndViewContainer.addAttribute
(String name, Object value) Add the supplied attribute to the underlying model.ModelAndViewContainer.mergeAttributes
(Map<String, ?> attributes) Copy attributes in the suppliedMap
with existing objects of the same name taking precedence (i.e.ModelAndViewContainer.removeAttributes
(Map<String, ?> attributes) Remove the given attributes from the model.Modifier and TypeMethodDescriptionprotected 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, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Handle the given return value by adding attributes to the model and setting a view or setting thesetRequestHandled(boolean)
flag totrue
to indicate the response has been handled directly.void
HandlerMethodReturnValueHandlerComposite.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) Iterate over registeredHandlerMethodReturnValueHandlers
and invoke the one that supports it.InvocableHandlerMethod.invokeForRequest
(NativeWebRequest request, ModelAndViewContainer mavContainer, Object... providedArgs) Invoke the method after resolving its argument values in the context of the given request.HandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Resolves a method parameter into an argument value from a given request.HandlerMethodArgumentResolverComposite.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Iterate over registeredHandlerMethodArgumentResolvers
and invoke the one that supports it. -
Uses of ModelAndViewContainer in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionprotected void
PathVariableMethodArgumentResolver.handleResolvedValue
(Object arg, String name, MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request) void
AsyncTaskMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
CallableMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
DeferredResultMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
HttpEntityMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
HttpHeadersReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ModelAndViewMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ModelAndViewResolverMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
RequestResponseBodyMethodProcessor.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ResponseBodyEmitterReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
StreamingResponseBodyReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ViewMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ViewNameMethodReturnValueHandler.handleReturnValue
(Object returnValue, MethodParameter returnType, ModelAndViewContainer mavContainer, NativeWebRequest webRequest) void
ServletInvocableHandlerMethod.invokeAndHandle
(ServletWebRequest webRequest, ModelAndViewContainer mavContainer, Object... providedArgs) Invoke the method and handle the return value through one of the configuredHandlerMethodReturnValueHandlers
.ContinuationHandlerMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) HttpEntityMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) MatrixVariableMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request, WebDataBinderFactory binderFactory) PathVariableMapMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Return a Map with all URI template variables or an empty map.PrincipalMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RedirectAttributesMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) RequestPartMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest request, WebDataBinderFactory binderFactory) RequestResponseBodyMethodProcessor.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Throws MethodArgumentNotValidException if validation fails.ServletRequestMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) ServletResponseMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) SetsetRequestHandled(boolean)
tofalse
to indicate that the method signature provides access to the response.UriComponentsBuilderMethodArgumentResolver.resolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)