public class ServletRequestParameterPropertyValues extends MutablePropertyValues
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.
WebUtils.getParametersStartingWith(javax.servlet.ServletRequest, java.lang.String)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PREFIX_SEPARATOR
Default prefix separator
|
Constructor and Description |
---|
ServletRequestParameterPropertyValues(ServletRequest request)
Create new ServletRequestPropertyValues using no prefix
(and hence, no prefix separator).
|
ServletRequestParameterPropertyValues(ServletRequest request,
String prefix)
Create new ServletRequestPropertyValues using the given prefix and
the default prefix separator (the underscore character "_").
|
ServletRequestParameterPropertyValues(ServletRequest request,
String prefix,
String prefixSeparator)
Create new ServletRequestPropertyValues supplying both prefix and
prefix separator.
|
add, addPropertyValue, addPropertyValue, addPropertyValues, addPropertyValues, changesSince, contains, equals, get, getPropertyValue, getPropertyValueList, getPropertyValues, hashCode, isConverted, isEmpty, registerProcessedProperty, removePropertyValue, removePropertyValue, setConverted, setPropertyValueAt, size, toString
public static final String DEFAULT_PREFIX_SEPARATOR
public ServletRequestParameterPropertyValues(ServletRequest request)
request
- HTTP requestpublic ServletRequestParameterPropertyValues(ServletRequest request, String prefix)
request
- HTTP requestprefix
- the prefix for parameters (the full prefix will
consist of this plus the separator)DEFAULT_PREFIX_SEPARATOR
public ServletRequestParameterPropertyValues(ServletRequest request, String prefix, String prefixSeparator)
request
- HTTP requestprefix
- the prefix for parameters (the full prefix will
consist of this plus the separator)prefixSeparator
- separator delimiting prefix (e.g. "spring")
and the rest of the parameter name ("param1", "param2")