|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<String,Object>
org.apache.struts2.portlet.PortletApplicationMap
public class PortletApplicationMap
Portlet specific Map implementation representing the
PortletContext of a Portlet.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
PortletApplicationMap(javax.portlet.PortletContext ctx)
Creates a new map object given the PortletContext. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.util.AbstractMap |
|---|
clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PortletApplicationMap(javax.portlet.PortletContext ctx)
PortletContext.
ctx - The portlet context.| Method Detail |
|---|
public void clear()
clear in interface Map<String,Object>clear in class AbstractMap<String,Object>public Set<Map.Entry<String,Object>> entrySet()
entrySet in interface Map<String,Object>entrySet in class AbstractMap<String,Object>public Object get(String key)
key - the entry key.
public Object put(String key,
Object value)
put in interface Map<String,Object>put in class AbstractMap<String,Object>key - the name of the attribute.value - the value to set.
public Object remove(String key)
key - the attribute to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||