org.apache.struts2.dispatcher
类 RequestMap

java.lang.Object
  继承者 java.util.AbstractMap
      继承者 org.apache.struts2.dispatcher.RequestMap
所有已实现的接口:
Serializable, Map

public class RequestMap
extends AbstractMap
implements Serializable

A simple implementation of the Map interface to handle a collection of request attributes.

另请参见:
序列化表格

嵌套类摘要
 
从类 java.util.AbstractMap 继承的嵌套类/接口
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
从接口 java.util.Map 继承的嵌套类/接口
Map.Entry<K,V>
 
构造方法摘要
RequestMap(javax.servlet.http.HttpServletRequest request)
          Saves the request to use as the backing for getting and setting values
 
方法摘要
 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.
 
从类 java.util.AbstractMap 继承的方法
containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

RequestMap

public RequestMap(javax.servlet.http.HttpServletRequest request)
Saves the request to use as the backing for getting and setting values

参数:
request - the http servlet request.
方法详细信息

clear

public void clear()
Removes all attributes from the request as well as clears entries in this map.

指定者:
接口 Map 中的 clear
覆盖:
AbstractMap 中的 clear

entrySet

public Set entrySet()
Returns a Set of attributes from the http request.

指定者:
接口 Map 中的 entrySet
指定者:
AbstractMap 中的 entrySet
返回:
a Set of attributes from the http request.

get

public Object get(Object key)
Returns the request attribute associated with the given key or null if it doesn't exist.

指定者:
接口 Map 中的 get
覆盖:
AbstractMap 中的 get
参数:
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)
Saves an attribute in the request.

指定者:
接口 Map 中的 put
覆盖:
AbstractMap 中的 put
参数:
key - the name of the request attribute.
value - the value to set.
返回:
the object that was just set.

remove

public Object remove(Object key)
Removes the specified request attribute.

指定者:
接口 Map 中的 remove
覆盖:
AbstractMap 中的 remove
参数:
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).