- <init>
Create a new ModelAndView given a View object and a model.Note: the supplied
model data is copied in
- addObject
Add an attribute to the model.
- setViewName
Set a view name for this ModelAndView, to be resolved by the DispatcherServlet
via a ViewResolver. W
- getModel
Return the model map. Never returns null. To be called by application code for
modifying the model.
- getViewName
Return the view name to be resolved by the DispatcherServlet via a ViewResolver,
or null if we are u
- getModelMap
Return the underlying ModelMap instance (never null).
- getView
Return the View object, or null if we are using a view name to be resolved by
the DispatcherServlet
- addAllObjects
Add all attributes contained in the provided Map to the model.
- setView
Set a View object for this ModelAndView. Will override any pre-existing view
name or View.
- isReference
Return whether we use a view reference, i.e. trueif the view has been specified
via a name to be res
- hasView
Indicate whether or not this ModelAndView has a view, either as a view name or
as a direct View inst
- isEmpty
Return whether this ModelAndView object is empty, i.e. whether it does not hold
any view and does no