类 PortletRequestParameterPropertyValues
- java.lang.Object
- org.springframework.beans.MutablePropertyValues
- org.springframework.web.portlet.bind.PortletRequestParameterPropertyValues
- 所有已实现的接口:
Serializable
,PropertyValues
public class PortletRequestParameterPropertyValues extends MutablePropertyValues
PropertyValues implementation created from parameters in a PortletRequest. 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.
- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller, John A. Lewis
- 另请参阅:
PortletUtils.getParametersStartingWith(javax.portlet.PortletRequest, java.lang.String)
, 序列化表格
字段概要
字段 修饰符和类型 字段 说明 static String
DEFAULT_PREFIX_SEPARATOR
Default prefix separator
构造器概要
构造器 构造器 说明 PortletRequestParameterPropertyValues(PortletRequest request)
Create new PortletRequestPropertyValues using no prefix (and hence, no prefix separator).PortletRequestParameterPropertyValues(PortletRequest request, String prefix)
Create new PortletRequestPropertyValues using the given prefix and the default prefix separator (the underscore character "_").PortletRequestParameterPropertyValues(PortletRequest request, String prefix, String prefixSeparator)
Create new PortletRequestPropertyValues supplying both prefix and prefix separator.
方法概要
从类继承的方法 org.springframework.beans.MutablePropertyValues
add, addPropertyValue, addPropertyValue, addPropertyValues, addPropertyValues, changesSince, clearProcessedProperty, contains, equals, get, getPropertyValue, getPropertyValueList, getPropertyValues, hashCode, isConverted, isEmpty, registerProcessedProperty, removePropertyValue, removePropertyValue, setConverted, setPropertyValueAt, size, toString
字段详细资料
DEFAULT_PREFIX_SEPARATOR
public static final String DEFAULT_PREFIX_SEPARATOR
Default prefix separator- 另请参阅:
- 常量字段值
构造器详细资料
PortletRequestParameterPropertyValues
public PortletRequestParameterPropertyValues(PortletRequest request)
Create new PortletRequestPropertyValues using no prefix (and hence, no prefix separator).- 参数:
request
- portlet request
PortletRequestParameterPropertyValues
public PortletRequestParameterPropertyValues(PortletRequest request, String prefix)
Create new PortletRequestPropertyValues using the given prefix and the default prefix separator (the underscore character "_").- 参数:
request
- portlet requestprefix
- the prefix for parameters (the full prefix will consist of this plus the separator)- 另请参阅:
DEFAULT_PREFIX_SEPARATOR
PortletRequestParameterPropertyValues
public PortletRequestParameterPropertyValues(PortletRequest request, String prefix, String prefixSeparator)
Create new PortletRequestPropertyValues supplying both prefix and prefix separator.- 参数:
request
- portlet 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")