| 
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
org.apache.struts2.dispatcher.SessionMap<K,V>
public class SessionMap<K,V>
A simple implementation of the Map interface to handle a collection of HTTP session
 attributes. The entrySet() method enumerates over all session attributes and creates a Set of entries.
 Note, this will occur lazily - only when the entry set is asked for.
| 嵌套类摘要 | 
|---|
| 从类 java.util.AbstractMap 继承的嵌套类/接口 | 
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> | 
| 从接口 java.util.Map 继承的嵌套类/接口 | 
|---|
Map.Entry<K,V> | 
| 构造方法摘要 | |
|---|---|
SessionMap(javax.servlet.http.HttpServletRequest request)
Creates a new session map given a http servlet request.  | 
|
| 方法摘要 | |
|---|---|
 void | 
clear()
Removes all attributes from the session as well as clears entries in this map.  | 
 boolean | 
containsKey(Object key)
Checks if the specified session attribute with the given key exists.  | 
 Set<Map.Entry<K,V>> | 
entrySet()
Returns a Set of attributes from the http session.  | 
 V | 
get(Object key)
Returns the session attribute associated with the given key or null if it doesn't exist.  | 
 void | 
invalidate()
Invalidate the http session.  | 
 V | 
put(K key,
    V value)
Saves an attribute in the session.  | 
 V | 
remove(Object key)
Removes the specified session attribute.  | 
| 从类 java.util.AbstractMap 继承的方法 | 
|---|
containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values | 
| 从类 java.lang.Object 继承的方法 | 
|---|
getClass, notify, notifyAll, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public SessionMap(javax.servlet.http.HttpServletRequest request)
request - the http servlet request object.| 方法详细信息 | 
|---|
public void invalidate()
public void clear()
Map<K,V> 中的 clearAbstractMap<K,V> 中的 clearpublic Set<Map.Entry<K,V>> entrySet()
Map<K,V> 中的 entrySetAbstractMap<K,V> 中的 entrySetpublic V get(Object key)
Map<K,V> 中的 getAbstractMap<K,V> 中的 getkey - the name of the session attribute.
public V put(K key,
             V value)
Map<K,V> 中的 putAbstractMap<K,V> 中的 putkey - the name of the session attribute.value - the value to set.
public V remove(Object key)
Map<K,V> 中的 removeAbstractMap<K,V> 中的 removekey - the name of the attribute to remove.
public boolean containsKey(Object key)
Map<K,V> 中的 containsKeyAbstractMap<K,V> 中的 containsKeykey - the name of the session attribute.
  | 
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||