|
||||||||||
| 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.PortletRequestMap
public class PortletRequestMap
A simple implementation of the Map interface to handle a collection of request attributes.
| 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 | |
|---|---|
PortletRequestMap(javax.portlet.PortletRequest request)
Saves the request to use as the backing for getting and setting values |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all attributes from the request as well as clears entries in this map. |
Set<Map.Entry<String,Object>> |
entrySet()
Returns a Set of attributes from the portlet request. |
Object |
get(Object key)
Returns the request attribute associated with the given key or null if it doesn't exist. |
Object |
put(String key,
Object value)
Saves an attribute in the request. |
Object |
remove(Object key)
Removes the specified request attribute. |
| Methods inherited from class java.util.AbstractMap |
|---|
clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PortletRequestMap(javax.portlet.PortletRequest request)
request - the portlet request.| 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(Object key)
get in interface Map<String,Object>get in class AbstractMap<String,Object>key - the name of the request attribute.
public Object put(String key,
Object value)
put in interface Map<String,Object>put in class AbstractMap<String,Object>key - the name of the request attribute.value - the value to set.
public Object remove(Object key)
remove in interface Map<String,Object>remove in class AbstractMap<String,Object>key - the name of the attribute to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||