| |
|
| java.lang.Object java.util.AbstractMap com.opensymphony.webwork.dispatcher.RequestMap
RequestMap | public class RequestMap extends AbstractMap implements Serializable(Code) | | A simple implementation of the
java.util.Map interface to handle a collection of request attributes.
author: Patrick Lightbody author: Bill Lynch (docs) |
Method Summary | |
public void | clear() Removes all attributes from the request as well as clears entries in this map. | public Set | entrySet() Returns a Set of attributes from the http request. | public Object | get(Object key) Returns the request attribute associated with the given key or null if it doesn't exist.
Parameters: key - the name of the request attribute. | public Object | put(Object key, Object value) Saves an attribute in the request.
Parameters: key - the name of the request attribute. Parameters: value - the value to set. | public Object | remove(Object key) Removes the specified request attribute.
Parameters: key - the name of the attribute to remove. |
RequestMap | public RequestMap(HttpServletRequest request)(Code) | | Saves the request to use as the backing for getting and setting values
Parameters: request - the http servlet request. |
clear | public void clear()(Code) | | Removes all attributes from the request as well as clears entries in this map.
|
entrySet | public Set entrySet()(Code) | | Returns a Set of attributes from the http request.
a Set of attributes from the http request. |
get | public Object get(Object key)(Code) | | Returns the request attribute associated with the given key or null if it doesn't exist.
Parameters: key - the name of the request attribute. the request attribute or null if it doesn't exist. |
put | public Object put(Object key, Object value)(Code) | | Saves an attribute in the request.
Parameters: key - the name of the request attribute. Parameters: value - the value to set. the object that was just set. |
remove | public Object remove(Object key)(Code) | | Removes the specified request attribute.
Parameters: key - the name of the attribute to remove. the value that was removed or null if the value was not found (and hence, not removed). |
|
|
|