public class PortletApplicationMap extends AbstractMap<String,Object> implements Serializable
Map implementation representing the
PortletContext of a Portlet.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
PortletApplicationMap(javax.portlet.PortletContext ctx)
Creates a new map object given the
PortletContext. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all entries from the Map and removes all attributes from the
portlet context.
|
Set<Map.Entry<String,Object>> |
entrySet()
Creates a Set of all portlet context attributes as well as context init
parameters.
|
Object |
get(String key)
Returns the portlet context attribute or init parameter based on the
given key.
|
Object |
put(String key,
Object value)
Sets a portlet context attribute given a attribute name and value.
|
Object |
remove(String key)
Removes the specified portlet context attribute.
|
clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuespublic PortletApplicationMap(javax.portlet.PortletContext ctx)
PortletContext.ctx - The portlet context.public void clear()
public Set<Map.Entry<String,Object>> entrySet()
public Object get(String key)
key - the entry key.public Object put(String key, Object value)
Copyright © 2000–2019 Apache Software Foundation. All rights reserved.