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 TypeMethodDescriptiongetNames()
Return the names of all property values.protected ServletRequest
protected Object
getRequestParameter
(String name, Class<?> type) initParameterNames
(ServletRequest request) 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
-
getNames
Description copied from interface:DataBinder.ValueResolver
Return the names of all property values.- Specified by:
getNames
in interfaceDataBinder.ValueResolver
-
initParameterNames
-