Package org.springframework.web.bind
Class ServletRequestDataBinder.ServletRequestValueResolver
java.lang.Object
org.springframework.web.bind.ServletRequestDataBinder.ServletRequestValueResolver
- All Implemented Interfaces:
DataBinder.ValueResolver
- Enclosing class:
- ServletRequestDataBinder
protected static class ServletRequestDataBinder.ServletRequestValueResolver
extends Object
implements DataBinder.ValueResolver
Resolver that looks up values to bind in a
ServletRequest
.-
Constructor Summary
ModifierConstructorDescriptionprotected
ServletRequestValueResolver
(ServletRequest request, WebDataBinder dataBinder) -
Method Summary
Modifier and TypeMethodDescriptionprotected ServletRequest
protected Object
getRequestParameter
(String name, Class<?> type) final Object
resolveValue
(String name, Class<?> paramType) Resolve the value for the given name and target parameter type.
-
Constructor Details
-
ServletRequestValueResolver
-
-
Method Details
-
getRequest
-
resolveValue
Description copied from interface:DataBinder.ValueResolver
Resolve the value for the given name and target parameter type.- Specified by:
resolveValue
in interfaceDataBinder.ValueResolver
- Parameters:
name
- the name to use for the lookup, possibly a nested path for constructor parameters on nested objectsparamType
- the target type, based on the constructor parameter type- Returns:
- the resolved value, possibly
null
if none found
-
getRequestParameter
-