public class RequestParameterMap extends PortletRequestParameterMap
setUseArrayForMultiValueAttributes(Boolean)
property allows choosing whether the map
will return:
PortletRequest.getParameter(String)
,
PortletRequest.getParameterValues(String)
Constructor and Description |
---|
RequestParameterMap(javax.portlet.PortletRequest portletRequest) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
getAttribute(java.lang.String key)
Hook method that needs to be implemented by concrete subclasses.
|
void |
setUseArrayForMultiValueAttributes(java.lang.Boolean useArrayForMultiValueAttributes) |
java.lang.Boolean |
useArrayForMultiValueAttributes()
This property allows choosing what kind of attributes the map will return:
String - selects the first value in case of multiple value parameters
String[] - wraps single-values parameters as array
String or String[] - depends on the values of the parameter
The above choices correspond to the following values for useArrayForMultiValueAttributes:
False
True
null
|
getAttributeNames, removeAttribute, setAttribute
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
public RequestParameterMap(javax.portlet.PortletRequest portletRequest)
public void setUseArrayForMultiValueAttributes(java.lang.Boolean useArrayForMultiValueAttributes)
public java.lang.Boolean useArrayForMultiValueAttributes()
protected java.lang.Object getAttribute(java.lang.String key)
StringKeyedMapAdapter
getAttribute
in class PortletRequestParameterMap
key
- the key to lookup