FileDocCategorySizeDatePackage
MessageContext.javaAPI DocApache Axis 1.43134Sat Apr 22 18:57:26 BST 2006javax.xml.rpc.handler

MessageContext

public interface MessageContext
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.

version
1.0

Fields Summary
Constructors Summary
Methods Summary
public abstract booleancontainsProperty(java.lang.String name)
Returns true if the MessageContext contains a property with the specified name.

param
name Name of the property whose presense is to be tested
return
Returns true if the MessageContext contains the property; otherwise false

public abstract java.lang.ObjectgetProperty(java.lang.String name)
Gets the value of a specific property from the MessageContext.

param
name the name of the property whose value is to be retrieved
return
the value of the property
throws
java.lang.IllegalArgumentException if an illegal property name is specified

public abstract java.util.IteratorgetPropertyNames()
Returns an Iterator view of the names of the properties in this MessageContext.

return
Iterator for the property names

public abstract voidremoveProperty(java.lang.String name)
Removes a property (name-value pair) from the MessageContext.

param
name the name of the property to be removed
throws
java.lang.IllegalArgumentException if an illegal property name is specified

public abstract voidsetProperty(java.lang.String name, java.lang.Object value)
Sets the name and value of a property associated with the MessageContext. If the MessageContext contains a value of the same property, the old value is replaced.

param
name ame of the property associated with the MessageContext
param
value Value of the property
throws
java.lang.IllegalArgumentException If some aspect the property is prevents it from being stored in the context
throws
java.lang.UnsupportedOperationException If this method is not supported.