|
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.
Resolves method parameters by delegating to a list of registered HandlerMethodArgumentResolvers. Previously resolved method parameters are cached for faster lookups.Class HandlerMethodArgumentResolverComposite, boolean supportsParameter(MethodParameter)@author Rossen Stoyanchev @since 3.1
Whether the given MethodParameter method parameter is supported by anyregisteredregisteredHandlerMethodArgumentResolver.
Handles method return values by delegating to a list of registered HandlerMethodReturnValueHandlers.Class HandlerMethodReturnValueHandlerComposite, boolean supportsReturnType(MethodParameter)Previously resolved return types are cached for faster lookups.@author Rossen Stoyanchev @since 3.1
Whether the given MethodParameter method return type is supported by anyregisteredregisteredHandlerMethodReturnValueHandler.
Provides a method for invoking the handler method for a given request after resolving its methodClass InvocableHandlerMethod, constructor InvocableHandlerMethod(Object, Method)argumentargument values through registered HandlerMethodArgumentResolvers.Argument resolution often requires a WebDataBinder for data binding or for type conversion.
Use the .setDataBinderFactory(WebDataBinderFactory) property to supply a binder factory to pass to argument resolvers.Use .setHandlerMethodArgumentResolvers(HandlerMethodArgumentResolverComposite) to
customizecustomize the list of argument resolvers.@author Rossen Stoyanchev @since 3.1
Class InvocableHandlerMethod, Object invokeForRequest(NativeWebRequest, ModelAndViewContainer, Object[])Constructs aCreates annew handler methodinstancewithfrom the givenbean instancehandler and method.@param bean the bean instance @param method the method
Invoke the method after resolving its argument values in the context of the given request.
ArgumentArgumentvalues are commonly resolved through HandlerMethodArgumentResolvers. The {@code provideArgs}parameter however may supply argument values to be used directly, i.e. without argument resolution.Examples of provided argument values include a WebDataBinder, a SessionStatus,oror a thrown exception instance. Provided argument values are checked before argument resolvers.@param request the current request @param mavContainer the ModelAndViewContainer forthe currentthis request @param providedArgsargument values to"given"try to usearguments matched bywithouttype,view resolutionnot resolved @return the raw value returned by the invoked method @exception Exception raised if no suitable argument resolver can be found, or the method raised an exception
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.