org.springframework.faces.webflow.context.portlet
Class RequestParameterMap
java.lang.Object
org.springframework.binding.collection.StringKeyedMapAdapter
org.springframework.webflow.context.portlet.PortletRequestParameterMap
org.springframework.faces.webflow.context.portlet.RequestParameterMap
- All Implemented Interfaces:
- java.util.Map
public class RequestParameterMap
- extends org.springframework.webflow.context.portlet.PortletRequestParameterMap
Map backed by a PortletContext for accessing Portlet request parameters. Request parameters can have multiple values.
The setUseArrayForMultiValueAttributes(Boolean) property allows choosing whether 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
- Since:
- 2.2.0
- Author:
- Rossen Stoyanchev
- See Also:
PortletRequest.getParameter(String),
PortletRequest.getParameterValues(String)
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
|
Method Summary |
protected java.lang.Object |
getAttribute(java.lang.String key)
|
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
|
| Methods inherited from class org.springframework.webflow.context.portlet.PortletRequestParameterMap |
getAttributeNames, removeAttribute, setAttribute |
| Methods inherited from class org.springframework.binding.collection.StringKeyedMapAdapter |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
equals, hashCode |
RequestParameterMap
public RequestParameterMap(javax.portlet.PortletRequest portletRequest)
setUseArrayForMultiValueAttributes
public void setUseArrayForMultiValueAttributes(java.lang.Boolean useArrayForMultiValueAttributes)
useArrayForMultiValueAttributes
public 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
getAttribute
protected java.lang.Object getAttribute(java.lang.String key)
- Overrides:
getAttribute in class org.springframework.webflow.context.portlet.PortletRequestParameterMap