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 SummaryConstructorsModifierConstructorDescriptionprotectedServletRequestValueResolver(ServletRequest request, WebDataBinder dataBinder) 
- 
Method SummaryModifier and TypeMethodDescriptiongetNames()Return the names of all property values.protected ServletRequestprotected ObjectgetRequestParameter(String name, Class<?> type) initParameterNames(ServletRequest request) final ObjectresolveValue(String name, Class<?> paramType) Resolve the value for the given name and target parameter type.
- 
Constructor Details- 
ServletRequestValueResolver
 
- 
- 
Method Details- 
getRequest
- 
resolveValueDescription copied from interface:DataBinder.ValueResolverResolve the value for the given name and target parameter type.- Specified by:
- resolveValuein interface- DataBinder.ValueResolver
- Parameters:
- name- the name to use for the lookup, possibly a nested path for constructor parameters on nested objects
- paramType- the target type, based on the constructor parameter type
- Returns:
- the resolved value, possibly nullif none found
 
- 
getRequestParameter
- 
getNamesDescription copied from interface:DataBinder.ValueResolverReturn the names of all property values.Useful for proactive checks whether there are property values nested further below the path for a constructor arg. If not then the constructor arg can be considered missing and not to be instantiated. - Specified by:
- getNamesin interface- DataBinder.ValueResolver
 
- 
initParameterNames
 
-