public class PortletRequestParameterPropertyValues 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.
PortletUtils.getParametersStartingWith(javax.portlet.PortletRequest, java.lang.String)
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PREFIX_SEPARATOR
Default prefix separator
|
Constructor and Description |
---|
PortletRequestParameterPropertyValues(javax.portlet.PortletRequest request)
Create new PortletRequestPropertyValues using no prefix (and hence, no prefix separator).
|
PortletRequestParameterPropertyValues(javax.portlet.PortletRequest request,
String prefix)
Create new PortletRequestPropertyValues using the given prefix and the default prefix separator (the underscore
character "_").
|
PortletRequestParameterPropertyValues(javax.portlet.PortletRequest request,
String prefix,
String prefixSeparator)
Create new PortletRequestPropertyValues supplying both prefix and prefix separator.
|
add, 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
public static final String DEFAULT_PREFIX_SEPARATOR
public PortletRequestParameterPropertyValues(javax.portlet.PortletRequest request)
request
- portlet requestpublic PortletRequestParameterPropertyValues(javax.portlet.PortletRequest request, String prefix)
request
- portlet requestprefix
- the prefix for parameters (the full prefix will consist of this plus the separator)DEFAULT_PREFIX_SEPARATOR
public PortletRequestParameterPropertyValues(javax.portlet.PortletRequest request, String prefix, String prefixSeparator)
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")Copyright © 2019 Liferay, Inc.. All rights reserved.