|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.core.ApplicationContext
public class ApplicationContext
Encapsulates a ServletContext as a context for Mentawai actions.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
ApplicationContext(javax.servlet.ServletContext context)
Creates a context for this ServletContext. |
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<String,Object>> |
entrySet()
|
Object |
get(Object key)
|
Object |
getAttribute(String name)
Gets an attribute value associated with the given name. |
javax.servlet.ServletContext |
getServletContext()
Gets the ServletContext associated with this ApplicationContext. |
boolean |
hasAttribute(String name)
Returns true is an attribute exists with this name. |
boolean |
isEmpty()
The implementation is not efficient as it loops through all session values to calculate the size. |
Iterator<String> |
keys()
Return an iterator with all the attribute names in this context. |
Set<String> |
keySet()
|
Object |
put(String key,
Object value)
|
void |
putAll(Map<? extends String,? extends Object> t)
|
Object |
remove(Object key)
|
void |
removeAttribute(String name)
Removes an attribute associated with the given name. |
void |
reset()
Not supported by an ApplicationContext. |
void |
setAttribute(String name,
Object value)
Sets an attribute value associated with the given name. |
int |
size()
|
Collection<Object> |
values()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public ApplicationContext(javax.servlet.ServletContext context)
context - The ServletContext| Method Detail |
|---|
public Object getAttribute(String name)
Context
getAttribute in interface Contextname - The name of the attribute.
public void setAttribute(String name,
Object value)
Context
setAttribute in interface Contextname - The name of the attribute.value - The value of the attribute.public void removeAttribute(String name)
Context
removeAttribute in interface Contextname - The name of the attribute.public void reset()
reset in interface Contextpublic javax.servlet.ServletContext getServletContext()
public boolean hasAttribute(String name)
Context
hasAttribute in interface Contextname - The name of the attribute.
public Iterator<String> keys()
Context
keys in interface Contextpublic void clear()
clear in interface Map<String,Object>public boolean isEmpty()
isEmpty in interface Map<String,Object>public boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public Set<Map.Entry<String,Object>> entrySet()
entrySet in interface Map<String,Object>public Object get(Object key)
get in interface Map<String,Object>public Set<String> keySet()
keySet in interface Map<String,Object>
public Object put(String key,
Object value)
put in interface Map<String,Object>public void putAll(Map<? extends String,? extends Object> t)
putAll in interface Map<String,Object>public Object remove(Object key)
remove in interface Map<String,Object>public int size()
size in interface Map<String,Object>public Collection<Object> values()
values in interface Map<String,Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||