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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsProperty(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.voidremoveProperty(String name) Removes a property from theMessageContext.voidsetProperty(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, waitMethods 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:MessageContextCheck if this message context contains a property with the given name.- Specified by:
containsPropertyin interfaceMessageContext- Parameters:
name- the name of the property to look for- Returns:
trueif theMessageContextcontains the property;falseotherwise
-
getProperty
Description copied from interface:MessageContextGets the value of a specific property from theMessageContext.- Specified by:
getPropertyin interfaceMessageContext- Parameters:
name- name of the property whose value is to be retrieved- Returns:
- value of the property
-
getPropertyNames
Description copied from interface:MessageContextReturn the names of all properties in thisMessageContext.- Specified by:
getPropertyNamesin interfaceMessageContext- Returns:
- the names of all properties in this context, or an empty array if none defined
-
removeProperty
Description copied from interface:MessageContextRemoves a property from theMessageContext.- Specified by:
removePropertyin interfaceMessageContext- Parameters:
name- name of the property to be removed
-
setProperty
Description copied from interface:MessageContextSets the name and value of a property associated with theMessageContext. If theMessageContextcontains a value of the same property, the old value is replaced.- Specified by:
setPropertyin interfaceMessageContext- Parameters:
name- name of the property associated with the valuevalue- value of the property
-