|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
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.
| 嵌套类摘要 |
|---|
| 从类 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 |
| 构造方法详细信息 |
|---|
public RequestMap(javax.servlet.http.HttpServletRequest request)
request - the http servlet request.| 方法详细信息 |
|---|
public void clear()
Map 中的 clearAbstractMap 中的 clearpublic Set entrySet()
Map 中的 entrySetAbstractMap 中的 entrySetpublic Object get(Object key)
Map 中的 getAbstractMap 中的 getkey - the name of the request attribute.
public Object put(Object key,
Object value)
Map 中的 putAbstractMap 中的 putkey - the name of the request attribute.value - the value to set.
public Object remove(Object key)
Map 中的 removeAbstractMap 中的 removekey - the name of the attribute to remove.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||