java.lang.Object | ||
↳ | org.springframework.beans.MutablePropertyValues | |
↳ | org.springframework.web.bind.ServletRequestParameterPropertyValues |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_PREFIX_SEPARATOR | Default prefix separator |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create new ServletRequestPropertyValues using no prefix
(and hence, no prefix separator).
| |||||||||||
Create new ServletRequestPropertyValues using the given prefix and
the default prefix separator (the underscore character "_").
| |||||||||||
Create new ServletRequestPropertyValues supplying both prefix and
prefix separator.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.beans.MutablePropertyValues
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.PropertyValues
|
Create new ServletRequestPropertyValues using no prefix (and hence, no prefix separator).
request | HTTP request |
---|
Create new ServletRequestPropertyValues using the given prefix and the default prefix separator (the underscore character "_").
request | HTTP request |
---|---|
prefix | the prefix for parameters (the full prefix will consist of this plus the separator) |
Create new ServletRequestPropertyValues supplying both prefix and prefix separator.
request | HTTP request |
---|---|
prefix | 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") |