|
||||||||||
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 interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary | |
---|---|
private Set<Object> |
entries
|
private HttpServletRequest |
request
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
RequestMap(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. |
Set |
entrySet()
Returns a Set of attributes from the http request. |
Object |
get(Object key)
Returns the request attribute associated with the given key or null if it doesn't exist. |
Object |
put(Object 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 |
Field Detail |
---|
private static final long serialVersionUID
private Set<Object> entries
private HttpServletRequest request
Constructor Detail |
---|
public RequestMap(HttpServletRequest request)
request
- the http servlet request.Method Detail |
---|
public void clear()
clear
in interface Map
clear
in class AbstractMap
public Set entrySet()
entrySet
in interface Map
entrySet
in class AbstractMap
public Object get(Object key)
get
in interface Map
get
in class AbstractMap
key
- the name of the request attribute.
public Object put(Object key, Object value)
put
in interface Map
put
in class AbstractMap
key
- the name of the request attribute.value
- the value to set.
public Object remove(Object key)
remove
in interface Map
remove
in class 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 |