public interface MessageContext
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(String name)
Returns true if the MessageContext contains a property with the specified name.
|
Object |
getProperty(String name)
Gets the value of a specific property from the MessageContext
|
Iterator |
getPropertyNames()
Returns an Iterator view of the names of the properties in this MessageContext
|
void |
removeProperty(String name)
Removes a property (name-value pair) from the MessageContext
|
void |
setProperty(String name,
Object value)
Sets the name and value of a property associated with the MessageContext.
|
boolean containsProperty(String name)
name
- Name of the property whose presense is to be testedObject getProperty(String name)
name
- Name of the property whose value is to be retrievedIllegalArgumentException
- if an illegal property name is specifiedIterator getPropertyNames()
void removeProperty(String name)
name
- Name of the property to be removedIllegalArgumentException
- if an illegal property name is specifiedvoid setProperty(String name, Object value)
name
- Name of the property associated with the MessageContextvalue
- Value of the propertyIllegalArgumentException
- If some aspect of the property is prevents it from being stored in the contextUnsupportedOperationException
- If this method is not supported.Copyright © 2016 JBoss by Red Hat. All rights reserved.