public abstract class AbstractMessageContext extends Object implements MessageContext
MessageContext
instances.Constructor and Description |
---|
AbstractMessageContext() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(String name)
Check if this message context contains a property with the given name.
|
Object |
getProperty(String name)
Gets the value of a specific property from the
MessageContext . |
String[] |
getPropertyNames()
Return the names of all properties in this
MessageContext . |
void |
removeProperty(String name)
Removes a property from the
MessageContext . |
void |
setProperty(String name,
Object value)
Sets the name and value of a property associated with the
MessageContext . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearResponse, getRequest, getResponse, hasResponse, readResponse, setResponse
public boolean containsProperty(String name)
MessageContext
containsProperty
in interface MessageContext
name
- the name of the property to look fortrue
if the MessageContext
contains the property; false
otherwisepublic Object getProperty(String name)
MessageContext
MessageContext
.getProperty
in interface MessageContext
name
- name of the property whose value is to be retrievedpublic String[] getPropertyNames()
MessageContext
MessageContext
.getPropertyNames
in interface MessageContext
public void removeProperty(String name)
MessageContext
MessageContext
.removeProperty
in interface MessageContext
name
- name of the property to be removedpublic void setProperty(String name, Object value)
MessageContext
MessageContext
. If the
MessageContext
contains a value of the same property, the old value is replaced.setProperty
in interface MessageContext
name
- name of the property associated with the valuevalue
- value of the property