|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
org.apache.struts2.dispatcher.RequestMap
public class RequestMap
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 |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
RequestMap(javax.servlet.http.HttpServletRequest 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. |
java.util.Set |
entrySet()
Returns a Set of attributes from the http request. |
java.lang.Object |
get(java.lang.Object key)
Returns the request attribute associated with the given key or null if it doesn't exist. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Saves an attribute in the request. |
java.lang.Object |
remove(java.lang.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 RequestMap(javax.servlet.http.HttpServletRequest request)
request
- the http servlet request.Method Detail |
---|
public void clear()
clear
in interface java.util.Map
clear
in class java.util.AbstractMap
public java.util.Set entrySet()
entrySet
in interface java.util.Map
entrySet
in class java.util.AbstractMap
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
get
in class java.util.AbstractMap
key
- the name of the request attribute.
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
put
in class java.util.AbstractMap
key
- the name of the request attribute.value
- the value to set.
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
remove
in class java.util.AbstractMap
key
- the name of the attribute to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |