|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Objectjava.util.AbstractMap
org.apache.struts2.dispatcher.ApplicationMap
public class ApplicationMap
A simple implementation of the Map
interface to handle a collection of attributes and
init parameters in a ServletContext
object. The entrySet()
method
enumerates over all servlet context attributes and init parameters and returns a collection of both.
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> |
构造方法摘要 | |
---|---|
ApplicationMap(javax.servlet.ServletContext ctx)
Creates a new map object given the servlet context. |
方法摘要 | |
---|---|
void |
clear()
Removes all entries from the Map and removes all attributes from the servlet context. |
Set |
entrySet()
Creates a Set of all servlet context attributes as well as context init parameters. |
Object |
get(Object key)
Returns the servlet context attribute or init parameter based on the given key. |
Object |
put(Object key,
Object value)
Sets a servlet context attribute given a attribute name and value. |
Object |
remove(Object key)
Removes the specified servlet context attribute. |
从类 java.util.AbstractMap 继承的方法 |
---|
containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, size, toString, values |
从类 java.lang.Object 继承的方法 |
---|
getClass, notify, notifyAll, wait, wait, wait |
构造方法详细信息 |
---|
public ApplicationMap(javax.servlet.ServletContext ctx)
ctx
- the servlet context方法详细信息 |
---|
public void clear()
Map
中的 clear
AbstractMap
中的 clear
public Set entrySet()
Map
中的 entrySet
AbstractMap
中的 entrySet
public Object get(Object key)
Map
中的 get
AbstractMap
中的 get
key
- the entry key.
public Object put(Object key, Object value)
Map
中的 put
AbstractMap
中的 put
key
- the name of the attribute.value
- the value to set.
public Object remove(Object key)
Map
中的 remove
AbstractMap
中的 remove
key
- the attribute to remove.
|
||||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |