AbstractHandlerMethodAdapter that supports
@RequestMapping annotated HandlerMethods.
Support for custom argument and return value types can be added via
setCustomArgumentResolvers and setCustomReturnValueHandlers,
or alternatively, to re-configure all argument and return value types,
use setArgumentResolvers and setReturnValueHandlers.
HandlerMethodArgumentResolver, HandlerMethodReturnValueHandler
| Modifier and Type | Class and Description |
|---|---|
| private class | RequestMappingHandlerAdapter.
References Deprecated
A default Spring MVC AsyncTaskExecutor that warns if used.
SimpleAsyncTaskExecutor is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Implements org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| protected InitBinderDataBinderFactory | Returns: the InitBinderDataBinderFactory instance to use@InitBinder methodsTemplate method to create a new InitBinderDataBinderFactory instance. |
| private InvocableHandlerMethod | |
| protected ServletInvocableHandlerMethod | Returns: the correspondingServletInvocableHandlerMethod (or custom subclass thereof)the handlerMethod)HandlerMethod definitionCreate a |
| private InvocableHandlerMethod | |
| public List | getArgumentResolvers()
Return the configured argument resolvers, or possibly |
| protected ConfigurableBeanFactory | |
| private int | |
| public List | |
| public List | |
| private WebDataBinderFactory | |
| private List | getDefaultArgumentResolvers()
Return the list of argument resolvers to use including built-in resolvers
and custom resolvers provided via |
| private List | getDefaultInitBinderArgumentResolvers()
Return the list of argument resolvers to use for |
| private List | getDefaultReturnValueHandlers()
Return the list of return value handlers to use including built-in and
custom handlers provided via |
| public List | getInitBinderArgumentResolvers()
Return the argument resolvers for |
| protected long | getLastModifiedInternal(HttpServletRequest
current HTTP request request, HandlerMethod handler method to use handlerMethod)Implements abstract org. This implementation always returns -1. |
| public List | |
| private ModelAndView | getModelAndView(ModelAndViewContainer mavContainer, ModelFactory modelFactory, NativeWebRequest webRequest)
|
| public List | |
| private ModelFactory | |
| public ReactiveAdapterRegistry | |
| public List | getReturnValueHandlers()
Return the configured handlers, or possibly |
| private SessionAttributesHandler | getSessionAttributesHandler(HandlerMethod handlerMethod)
Return the |
| public WebBindingInitializer | |
| protected ModelAndView | handleInternal(HttpServletRequest
current HTTP request request, HttpServletResponse current HTTP response response, HandlerMethod handler method to use. This object must have previously been passed to the
handlerMethod)supportsInternal(HandlerMethod) this interface, which must have returned true.Implements abstract org. Use the given handler method to handle the request. |
| private void | |
| private void | |
| protected ModelAndView | invokeHandlerMethod(HttpServletRequest request, HttpServletResponse response, HandlerMethod handlerMethod)
Invoke the |
| private static Predicate | |
| public void | setArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
Configure the complete list of supported argument types thus overriding the resolvers that would otherwise be configured by default. |
| public void | setAsyncRequestTimeout(long
the timeout value in milliseconds timeout)Specify the amount of time, in milliseconds, before concurrent handling should time out. |
| public void | setBeanFactory(BeanFactory
owning BeanFactory (never beanFactory)null).
The bean can immediately call methods on the factory.Implements org. A |
| public void | setCacheSecondsForSessionAttributeHandlers(int cacheSecondsForSessionAttributeHandlers)
Cache content produced by |
| public void | setCallableInterceptors(List<CallableProcessingInterceptor>
the interceptors to register interceptors)Configure |
| public void | setContentNegotiationManager(ContentNegotiationManager contentNegotiationManager)
Set the |
| public void | setCustomArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
Provide resolvers for custom argument types. |
| public void | setCustomReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Provide handlers for custom return value types. |
| public void | setDeferredResultInterceptors(List<DeferredResultProcessingInterceptor>
the interceptors to register interceptors)Configure |
| public void | setIgnoreDefaultModelOnRedirect(boolean ignoreDefaultModelOnRedirect)
Deprecated
since 6.0. as of 6.0 without a replacement; once removed, the default
model will always be ignored on redirect
By default, the content of the "default" model is used both during rendering and redirect scenarios. |
| public void | setInitBinderArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
Configure the supported argument types in |
| public void | setMessageConverters(List<HttpMessageConverter<?>> messageConverters)
Provide the converters to use in argument resolvers and return value handlers that support reading and/or writing to the body of the request and response. |
| public void | setModelAndViewResolvers(List<ModelAndViewResolver> modelAndViewResolvers)
Provide custom |
| public void | setParameterNameDiscoverer(ParameterNameDiscoverer parameterNameDiscoverer)
Set the ParameterNameDiscoverer to use for resolving method parameter names if needed (e.g. for default attribute names). |
| public void | setReactiveAdapterRegistry(ReactiveAdapterRegistry reactiveAdapterRegistry)
Configure the registry for reactive library types to be supported as return values from controller methods. |
| public void | setRequestBodyAdvice(List<RequestBodyAdvice> requestBodyAdvice)
Add one or more |
| public void | setResponseBodyAdvice(List<ResponseBodyAdvice<?>> responseBodyAdvice)
Add one or more |
| public void | setReturnValueHandlers(List<HandlerMethodReturnValueHandler> returnValueHandlers)
Configure the complete list of supported return value types thus overriding handlers that would otherwise be configured by default. |
| public void | setSessionAttributeStore(SessionAttributeStore sessionAttributeStore)
Specify the strategy to store session attributes with. |
| public void | setSynchronizeOnSession(boolean synchronizeOnSession)
Set if controller execution should be synchronized on the session, to serialize parallel invocations from the same client. |
| public void | setTaskExecutor(AsyncTaskExecutor taskExecutor)
Set the default |
| public void | setWebBindingInitializer(WebBindingInitializer webBindingInitializer)
Provide a WebBindingInitializer with "global" initialization to apply to every DataBinder instance. |
| protected boolean | supportsInternal(HandlerMethod
the handler method to check handlerMethod)Implements abstract org. Always return |