| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The interface MessageContext abstracts the message
 context that is processed by a handler in the handle
 method.
 
The MessageContext interface provides methods to
 manage a property set. MessageContext properties
 enable handlers in a handler chain to share processing related
 state.
| Method Summary | |
|  boolean | containsProperty(java.lang.String name)Returns true if the MessageContextcontains 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. | 
| Method Detail | 
public void setProperty(java.lang.String name,
                        java.lang.Object value)
MessageContext. If the MessageContext
 contains a value of the same property, the old value is replaced.
name - ame of the property associated with the
         MessageContextvalue - Value of the property
java.lang.IllegalArgumentException - If some aspect
         the property is prevents it from being stored
         in the context
java.lang.UnsupportedOperationException - If this method is
         not supported.public java.lang.Object getProperty(java.lang.String name)
MessageContext.
name - the name of the property whose value is to be
        retrieved
java.lang.IllegalArgumentException - if an illegal
        property name is specifiedpublic void removeProperty(java.lang.String name)
MessageContext.
name - the name of the property to be removed
java.lang.IllegalArgumentException - if an illegal
        property name is specifiedpublic boolean containsProperty(java.lang.String name)
MessageContext contains a property
 with the specified name.
name - Name of the property whose presense is to be tested
public java.util.Iterator getPropertyNames()
MessageContext.
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||