public class RequestPropertyMap extends StringKeyedMapAdapter
setUseArrayForMultiValueAttributes(Boolean) property allows choosing whether the map
will return:
PortletRequest.getProperty(String),
PortletRequest.getProperties(String)| Constructor and Description |
|---|
RequestPropertyMap(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.
|
protected java.util.Iterator<java.lang.String> |
getAttributeNames()
Hook method that needs to be implemented by concrete subclasses.
|
protected void |
removeAttribute(java.lang.String key)
Hook method that needs to be implemented by concrete subclasses.
|
protected void |
setAttribute(java.lang.String key,
java.lang.Object value)
Hook method that needs to be implemented by concrete subclasses.
|
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() |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuespublic RequestPropertyMap(javax.portlet.PortletRequest portletRequest)
public void setUseArrayForMultiValueAttributes(java.lang.Boolean useArrayForMultiValueAttributes)
useArrayForMultiValueAttributes - public java.lang.Boolean useArrayForMultiValueAttributes()
protected java.lang.Object getAttribute(java.lang.String key)
StringKeyedMapAdaptergetAttribute in class StringKeyedMapAdapterkey - the key to lookupprotected void setAttribute(java.lang.String key,
java.lang.Object value)
StringKeyedMapAdaptersetAttribute in class StringKeyedMapAdapterkey - the key to associate the value withvalue - the value to associate with the keyprotected void removeAttribute(java.lang.String key)
StringKeyedMapAdapterremoveAttribute in class StringKeyedMapAdapterkey - the key to removeprotected java.util.Iterator<java.lang.String> getAttributeNames()
StringKeyedMapAdaptergetAttributeNames in class StringKeyedMapAdapter