org.apache.struts.chain.contexts
Class ContextWrapper
java.lang.Object
org.apache.struts.chain.contexts.ContextWrapper
- All Implemented Interfaces:
- Map, org.apache.commons.chain.Context
- Direct Known Subclasses:
- ActionContextBase
public class ContextWrapper
- extends Object
- implements org.apache.commons.chain.Context
Provide a base class for any Context Implementation which is primarily
intended for use in a subchain.
Classes which extend
ContextWrapper may implement typesafe property methods which
also leave their values in the underlying context.
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
|
Constructor Summary |
ContextWrapper(org.apache.commons.chain.Context context)
Instantiate object as a composite around the given Context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextWrapper
public ContextWrapper(org.apache.commons.chain.Context context)
Instantiate object as a composite around the given Context.
- Parameters:
context - Context instance to wrap
getBaseContext
protected org.apache.commons.chain.Context getBaseContext()
- Provide the underlying Context for this composite.
- Returns:
- The undelrying Context
entrySet
public Set entrySet()
- Specified by:
entrySet in interface Map
keySet
public Set keySet()
- Specified by:
keySet in interface Map
values
public Collection values()
- Specified by:
values in interface Map
clear
public void clear()
- Specified by:
clear in interface Map
putAll
public void putAll(Map map)
- Specified by:
putAll in interface Map
remove
public Object remove(Object key)
- Specified by:
remove in interface Map
put
public Object put(Object key,
Object value)
- Specified by:
put in interface Map
get
public Object get(Object key)
- Specified by:
get in interface Map
containsValue
public boolean containsValue(Object o)
- Specified by:
containsValue in interface Map
containsKey
public boolean containsKey(Object o)
- Specified by:
containsKey in interface Map
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map
size
public int size()
- Specified by:
size in interface Map
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.