public interface MessageContext
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(java.lang.String name)
Returns true if the MessageContext contains a property with the specified name.
|
java.lang.Object |
getProperty(java.lang.String name)
Gets the value of a specific property from the MessageContext
|
java.util.Iterator |
getPropertyNames()
Returns an Iterator view of the names of the properties in this MessageContext
|
void |
removeProperty(java.lang.String name)
Removes a property (name-value pair) from the MessageContext
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets the name and value of a property associated with the MessageContext.
|
boolean containsProperty(java.lang.String name)
name
- Name of the property whose presense is to be testedjava.lang.Object getProperty(java.lang.String name)
name
- Name of the property whose value is to be retrievedjava.lang.IllegalArgumentException
- if an illegal property name is specifiedjava.util.Iterator getPropertyNames()
void removeProperty(java.lang.String name)
name
- Name of the property to be removedjava.lang.IllegalArgumentException
- if an illegal property name is specifiedvoid setProperty(java.lang.String name, java.lang.Object value)
name
- Name of the property associated with the MessageContextvalue
- Value of the propertyjava.lang.IllegalArgumentException
- If some aspect of the property is prevents it from being stored in the contextjava.lang.UnsupportedOperationException
- If this method is not supported.