org.apache.axis2.context
Class AbstractContext
java.lang.Object
org.apache.axis2.context.AbstractContext
- Direct Known Subclasses:
- ConfigurationContext, MessageContext, OperationContext, ServiceContext, ServiceGroupContext, SessionContext
- public abstract class AbstractContext
- extends java.lang.Object
This is the top most level of the Context hierachy and is a bag of properties.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
properties
protected java.util.Map properties
parent
protected AbstractContext parent
AbstractContext
protected AbstractContext(AbstractContext parent)
init
public abstract void init(AxisConfiguration axisConfiguration)
throws AxisFault
- Throws:
AxisFault
setProperty
public void setProperty(java.lang.String key,
java.lang.Object value)
- Store a property for message context
- Parameters:
key - value -
getProperty
public java.lang.Object getProperty(java.lang.String key)
- Retrieves an object given a key.
- Parameters:
key - - if not found, will return null
- Returns:
- Returns the property.
setParent
public void setParent(AbstractContext context)
- Parameters:
context -
getParent
public AbstractContext getParent()
- Returns:
- Returns AbstractContext.
getProperties
public java.util.Map getProperties()
setProperties
public void setProperties(java.util.Map properties)
- This will set the properties to the context. But in setting that one may need to "copy" all
the properties from the source properties to the target properties. To enable this we introduced
a property (org.apache.axis2.client.Options#COPY_PROPERTIES) so that if set to true, this code
will copy the whole thing, without just referencing to the source.
- Parameters:
properties - - See Also:
Options.COPY_PROPERTIES