org.springframework.faces.webflow.context.portlet
Class RequestPropertyMap
java.lang.Object
org.springframework.binding.collection.StringKeyedMapAdapter
org.springframework.faces.webflow.context.portlet.RequestPropertyMap
- All Implemented Interfaces:
- java.util.Map
public class RequestPropertyMap
- extends org.springframework.binding.collection.StringKeyedMapAdapter
Map backed by a PortletContext for accessing Portlet request properties. Request properties can have multiple values.
The setUseArrayForMultiValueAttributes(Boolean) property allows choosing whether the map
will return:
- String - selects the first element in case of multiple values
- String[] - wraps single-values attributes as array
- String or String[] - depends on the values of the property
- Since:
- 2.2.0
- Author:
- Rossen Stoyanchev
- See Also:
PortletRequest.getProperty(String),
PortletRequest.getProperties(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)
|
protected java.util.Iterator<java.lang.String> |
getAttributeNames()
|
protected void |
removeAttribute(java.lang.String key)
|
protected void |
setAttribute(java.lang.String key,
java.lang.Object value)
|
void |
setUseArrayForMultiValueAttributes(java.lang.Boolean useArrayForMultiValueAttributes)
This property allows choosing what kind of attributes the map will return:
String - selects the first element in case of multiple values
String[] - wraps single-values attributes as array
String or String[] - depends on the values of the property
The above choices correspond to the following values for useArrayForMultiValueAttributes:
False
True
null
|
java.lang.Boolean |
useArrayForMultiValueAttributes()
|
| 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 |
RequestPropertyMap
public RequestPropertyMap(javax.portlet.PortletRequest portletRequest)
setUseArrayForMultiValueAttributes
public void setUseArrayForMultiValueAttributes(java.lang.Boolean useArrayForMultiValueAttributes)
- This property allows choosing what kind of attributes the map will return:
- String - selects the first element in case of multiple values
- String[] - wraps single-values attributes as array
- String or String[] - depends on the values of the property
The above choices correspond to the following values for useArrayForMultiValueAttributes:
- False
- True
- null
- Parameters:
useArrayForMultiValueAttributes -
useArrayForMultiValueAttributes
public java.lang.Boolean useArrayForMultiValueAttributes()
getAttribute
protected java.lang.Object getAttribute(java.lang.String key)
- Specified by:
getAttribute in class org.springframework.binding.collection.StringKeyedMapAdapter
setAttribute
protected void setAttribute(java.lang.String key,
java.lang.Object value)
- Specified by:
setAttribute in class org.springframework.binding.collection.StringKeyedMapAdapter
removeAttribute
protected void removeAttribute(java.lang.String key)
- Specified by:
removeAttribute in class org.springframework.binding.collection.StringKeyedMapAdapter
getAttributeNames
protected java.util.Iterator<java.lang.String> getAttributeNames()
- Specified by:
getAttributeNames in class org.springframework.binding.collection.StringKeyedMapAdapter