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 Details

  • Method Details

    • getRequest

      protected ServletRequest getRequest()
    • resolveValue

      @Nullable public final Object resolveValue(String name, Class<?> paramType)
      Description copied from interface: DataBinder.ValueResolver
      Resolve the value for the given name and target parameter type.
      Specified by:
      resolveValue in 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 null if none found
    • getRequestParameter

      @Nullable protected Object getRequestParameter(String name, Class<?> type)