abstract class AbstractWebArgumentResolverAdapter : HandlerMethodArgumentResolver
An abstract base class adapting a WebArgumentResolver to the HandlerMethodArgumentResolver contract.
Note: This class is provided for backwards compatibility. However it is recommended to re-write a WebArgumentResolver as HandlerMethodArgumentResolver. Since #supportsParameter can only be implemented by actually resolving the value and then checking the result is not WebArgumentResolver#UNRESOLVED any exceptions raised must be absorbed and ignored since it's not clear whether the adapter doesn't support the parameter or whether it failed for an internal reason. The HandlerMethodArgumentResolver contract also provides access to model attributes and to WebDataBinderFactory (for type conversion).
Author
Arjen Poutsma
Author
Rossen Stoyanchev
Since
3.1
AbstractWebArgumentResolverAdapter(adaptee: WebArgumentResolver)
Create a new instance. |
open fun resolveArgument(parameter: MethodParameter, mavContainer: ModelAndViewContainer, webRequest: NativeWebRequest, binderFactory: WebDataBinderFactory): Any
Delegate to the WebArgumentResolver instance. |
|
open fun supportsParameter(parameter: MethodParameter): Boolean
Actually resolve the value and check the resolved value is not |
open class ServletWebArgumentResolverAdapter : AbstractWebArgumentResolverAdapter
A Servlet-specific org.springframework.web.method.annotation.AbstractWebArgumentResolverAdapter that creates a NativeWebRequest from ServletRequestAttributes. Note: This class is provided for backwards compatibility. However it is recommended to re-write a |