Package org.springframework.web.bind
Class ServletRequestParameterPropertyValues
java.lang.Object
org.springframework.beans.MutablePropertyValues
org.springframework.web.bind.ServletRequestParameterPropertyValues
- All Implemented Interfaces:
- Serializable,- Iterable<PropertyValue>,- PropertyValues
PropertyValues implementation created from parameters in a ServletRequest.
 Can look for all property values beginning with a certain prefix and
 prefix separator (default is "_").
 
For example, with a prefix of "spring", "spring_param1" and "spring_param2" result in a Map with "param1" and "param2" as keys.
This class is not immutable to be able to efficiently remove property values that should be ignored for binding.
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreate new ServletRequestPropertyValues using no prefix (and hence, no prefix separator).ServletRequestParameterPropertyValues(ServletRequest request, @Nullable String prefix) Create new ServletRequestPropertyValues using the given prefix and the default prefix separator (the underscore character "_").ServletRequestParameterPropertyValues(ServletRequest request, @Nullable String prefix, @Nullable String prefixSeparator) Create new ServletRequestPropertyValues supplying both prefix and prefix separator.
- 
Method SummaryMethods inherited from class org.springframework.beans.MutablePropertyValuesadd, addPropertyValue, addPropertyValue, addPropertyValues, addPropertyValues, changesSince, clearProcessedProperty, contains, equals, get, getPropertyValue, getPropertyValueList, getPropertyValues, hashCode, isConverted, isEmpty, iterator, registerProcessedProperty, removePropertyValue, removePropertyValue, setConverted, setPropertyValueAt, size, spliterator, stream, toString
- 
Field Details- 
DEFAULT_PREFIX_SEPARATORDefault prefix separator.- See Also:
 
 
- 
- 
Constructor Details- 
ServletRequestParameterPropertyValuesCreate new ServletRequestPropertyValues using no prefix (and hence, no prefix separator).- Parameters:
- request- the HTTP request
 
- 
ServletRequestParameterPropertyValuesCreate new ServletRequestPropertyValues using the given prefix and the default prefix separator (the underscore character "_").- Parameters:
- request- the HTTP request
- prefix- the prefix for parameters (the full prefix will consist of this plus the separator)
- See Also:
 
- 
ServletRequestParameterPropertyValuespublic ServletRequestParameterPropertyValues(ServletRequest request, @Nullable String prefix, @Nullable String prefixSeparator) Create new ServletRequestPropertyValues supplying both prefix and prefix separator.- Parameters:
- request- the HTTP request
- prefix- the prefix for parameters (the full prefix will consist of this plus the separator)
- prefixSeparator- separator delimiting prefix (for example, "spring") and the rest of the parameter name ("param1", "param2")
 
 
-