public class ServletWebArgumentResolverAdapter extends AbstractWebArgumentResolverAdapter
AbstractWebArgumentResolverAdapter
that creates a NativeWebRequest
from ServletRequestAttributes
.
Note: This class is provided for backwards compatibility.
However it is recommended to re-write a WebArgumentResolver
as
HandlerMethodArgumentResolver
. For more details see javadoc of
AbstractWebArgumentResolverAdapter
.
Constructor and Description |
---|
ServletWebArgumentResolverAdapter(WebArgumentResolver adaptee) |
Modifier and Type | Method and Description |
---|---|
protected NativeWebRequest |
getWebRequest()
Required for access to NativeWebRequest in
AbstractWebArgumentResolverAdapter.supportsParameter(org.springframework.core.MethodParameter) . |
resolveArgument, supportsParameter
public ServletWebArgumentResolverAdapter(WebArgumentResolver adaptee)
protected NativeWebRequest getWebRequest()
AbstractWebArgumentResolverAdapter
AbstractWebArgumentResolverAdapter.supportsParameter(org.springframework.core.MethodParameter)
.getWebRequest
in class AbstractWebArgumentResolverAdapter