Package org.springframework.ws.context
Class AbstractMessageContext
java.lang.Object
org.springframework.ws.context.AbstractMessageContext
- All Implemented Interfaces:
MessageContext
- Direct Known Subclasses:
DefaultMessageContext
Abstract base class for
MessageContext
instances.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsProperty
(String name) Check if this message context contains a property with the given name.getProperty
(String name) Gets the value of a specific property from theMessageContext
.String[]
Return the names of all properties in thisMessageContext
.void
removeProperty
(String name) Removes a property from theMessageContext
.void
setProperty
(String name, Object value) Sets the name and value of a property associated with theMessageContext
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ws.context.MessageContext
clearResponse, getRequest, getResponse, hasResponse, readResponse, setResponse
-
Constructor Details
-
AbstractMessageContext
public AbstractMessageContext()
-
-
Method Details
-
containsProperty
Description copied from interface:MessageContext
Check if this message context contains a property with the given name.- Specified by:
containsProperty
in interfaceMessageContext
- Parameters:
name
- the name of the property to look for- Returns:
true
if theMessageContext
contains the property;false
otherwise
-
getProperty
Description copied from interface:MessageContext
Gets the value of a specific property from theMessageContext
.- Specified by:
getProperty
in interfaceMessageContext
- Parameters:
name
- name of the property whose value is to be retrieved- Returns:
- value of the property
-
getPropertyNames
Description copied from interface:MessageContext
Return the names of all properties in thisMessageContext
.- Specified by:
getPropertyNames
in interfaceMessageContext
- Returns:
- the names of all properties in this context, or an empty array if none defined
-
removeProperty
Description copied from interface:MessageContext
Removes a property from theMessageContext
.- Specified by:
removeProperty
in interfaceMessageContext
- Parameters:
name
- name of the property to be removed
-
setProperty
Description copied from interface:MessageContext
Sets the name and value of a property associated with theMessageContext
. If theMessageContext
contains a value of the same property, the old value is replaced.- Specified by:
setProperty
in interfaceMessageContext
- Parameters:
name
- name of the property associated with the valuevalue
- value of the property
-