|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packageorg.springframework.web.method.support
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
Records model and view related decisions madeClass ModelAndViewContainer, ModelAndViewContainer addAllAttributes(Map<String, ?>)bybyHandlerMethodArgumentResolversandand HandlerMethodReturnValueHandlers during the course of invocationofof a controller method.The .setRequestHandled flag can be used to indicate the request has been handled directly and view resolution is not required.
A default Model is automatically created at instantiation.
An alternate model instance may be provided via .setRedirectModelfor use in a redirect scenario. When .setRedirectModelScenario issetset to {@code true} signalling a redirect scenario, the .getModel()returns the redirect model instead of the default model.@author Rossen Stoyanchev @since 3.1
Copy all attributes to the underlying model. A shortcut for {@Class ModelAndViewContainer, ModelAndViewContainer addAttribute(Object)seecodeModelMap#getModel().addAllAttributes(Map)}.
Add the supplied attribute to the underlying model. A shortcut for {@Class ModelAndViewContainer, ModelAndViewContainer addAttribute(String, Object)seecodeModel#getModel().addAttribute(Object)}.
Add the supplied attribute to the underlying model. A shortcut for {@Class ModelAndViewContainer, boolean containsAttribute(String)seecodeModelMap#getModel().addAttribute(String, Object)}.
Whether the underlying model contains the given attribute name. A shortcut for {@Class ModelAndViewContainer, ModelMap getModel()seecodeModelMap#getModel().containsAttribute(String)}.
Return the model to use: the "default" or the "redirect" model.Class ModelAndViewContainer, SessionStatus getSessionStatus()The default model is used if {@code "redirectModelScenario=false"} or if the redirect model is {@code null} (i.e. it wasn't declared as
aamethod argument) and {@code ignoreDefaultModelOnRedirect=false}.
Return the SessionStatus instance to use that can be usedClass ModelAndViewContainer, String getViewName()toto signal that session processing is complete.
Return the view name to be resolved by the DispatcherServlet viaClass ModelAndViewContainer, boolean isViewReference()aa ViewResolver, or {@code null} if a View object is set.
Whether the view is a view reference specified via a name toClass ModelAndViewContainer, ModelAndViewContainer mergeAttributes(Map<String, ?>)beberesolved by the DispatcherServlet via a ViewResolver.
Copy attributes in the suppliedClass ModelAndViewContainer, void setIgnoreDefaultModelOnRedirect(boolean)Map
with existing objectsofofthe same name taking precedence (i.e. not getting replaced). A shortcut for {@seecodeModelMap#getModel().mergeAttributes(Map)}.
When set to {@code true} the default model is never used in a redirect scenario. So if a redirect model is not available, an empty modelClass ModelAndViewContainer, void setRedirectModel(ModelMap)isis used instead.When set to {@code false} the default model can be used in a redirect scenario if a redirect model is not available.
The default setting is {@code false}.
Provide a separate model instance to use in a redirect scenario.Class ModelAndViewContainer, void setRequestHandled(boolean)The provided additional model however is not used usedunlessunless .setRedirectModelScenario(boolean) gets set to {@code true} to signal a redirect scenario.
Signal a scenario where the request is handled directly.Class ModelAndViewContainer, void setView(Object)A HandlerMethodReturnValueHandler may use this flag
toto indicate the response has been fully handled and viewresolutionresolution is not required (e.g. {@code @ResponseBody}).A HandlerMethodArgumentResolver may also use this flag to indicate the presence of an argument (e.g.
{@code ServletResponse} or {@code OutputStream}) that may leadtoto a complete response depending on the method return value.The default value is {@code true}.
Set a View object to be used by the DispatcherServlet.Class ModelAndViewContainer, void setViewName(String)Will override any pre-existing view name or View.
Set a view name to be resolved by the DispatcherServlet via a ViewResolver.Will override any pre-existing view name or View.