类 ServletRequestParameterPropertyValues
java.lang.Object
cn.taketoday.beans.PropertyValues
cn.taketoday.web.bind.ServletRequestParameterPropertyValues
- 所有已实现的接口:
Serializable,Iterable<cn.taketoday.beans.PropertyValue>
public class ServletRequestParameterPropertyValues
extends cn.taketoday.beans.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 "today", "today_param1" and "today_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.
- 从以下版本开始:
- 4.0 2022/3/2 16:31
- 作者:
- Rod Johnson, Juergen Hoeller, Harry Yang
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器构造器说明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. -
方法概要
从类继承的方法 cn.taketoday.beans.PropertyValues
add, add, add, add, asList, asMap, changesSince, clear, clearProcessedProperty, contains, equals, get, getPropertyValue, hashCode, isConverted, isEmpty, iterator, registerProcessedProperty, remove, remove, set, set, set, set, setAt, setConverted, size, spliterator, stream, toArray, toString
-
字段详细资料
-
DEFAULT_PREFIX_SEPARATOR
Default prefix separator.- 另请参阅:
-
-
构造器详细资料
-
ServletRequestParameterPropertyValues
Create new ServletRequestPropertyValues using no prefix (and hence, no prefix separator).- 参数:
request- the HTTP request
-
ServletRequestParameterPropertyValues
Create new ServletRequestPropertyValues using the given prefix and the default prefix separator (the underscore character "_").- 参数:
request- the HTTP requestprefix- the prefix for parameters (the full prefix will consist of this plus the separator)- 另请参阅:
-
ServletRequestParameterPropertyValues
public ServletRequestParameterPropertyValues(ServletRequest request, @Nullable String prefix, @Nullable String prefixSeparator) Create new ServletRequestPropertyValues supplying both prefix and prefix separator.- 参数:
request- the 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")
-