javax.xml.rpc.handler
Interface MessageContext
- SOAPMessageContext
- 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.
abstract boolean | containsProperty(String name) - Returns true if the
MessageContext contains a property
with the specified name.
|
abstract Object | getProperty(String name) - Gets the value of a specific property from the
MessageContext .
|
abstract Iterator | getPropertyNames() - Returns an Iterator view of the names of the properties
in this
MessageContext .
|
abstract void | removeProperty(String name) - Removes a property (name-value pair) from the
MessageContext .
|
abstract void | setProperty(String name, Object value) - Sets the name and value of a property associated with the
MessageContext .
|
containsProperty
public abstract boolean containsProperty(String name)
Returns true if the MessageContext
contains a property
with the specified name.
name
- Name of the property whose presense is to be tested
- Returns true if the MessageContext contains the
property; otherwise false
getProperty
public abstract Object getProperty(String name)
Gets the value of a specific property from the
MessageContext
.
name
- the name of the property whose value is to be
retrieved
- the value of the property
getPropertyNames
public abstract Iterator getPropertyNames()
Returns an Iterator view of the names of the properties
in this MessageContext
.
- Iterator for the property names
removeProperty
public abstract void removeProperty(String name)
Removes a property (name-value pair) from the
MessageContext
.
name
- the name of the property to be removed
setProperty
public abstract void setProperty(String name,
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.
name
- ame of the property associated with the
MessageContext
value
- Value of the property
Copyright © 2005 Apache Web Services Project. All Rights Reserved.