Spring Web Services Framework

org.springframework.ws.context
Class AbstractMessageContext

java.lang.Object
  extended by org.springframework.ws.context.AbstractMessageContext
All Implemented Interfaces:
MessageContext
Direct Known Subclasses:
DefaultMessageContext

public abstract class AbstractMessageContext
extends Object
implements MessageContext

Abstract base class for MessageContext instances.

Since:
1.0.0
Author:
Arjen Poutsma

Constructor Summary
AbstractMessageContext()
           
 
Method Summary
 boolean containsProperty(String name)
          Check if this message context contains a property with the given name.
 Object getProperty(String name)
          Gets the value of a specific property from the MessageContext.
 String[] getPropertyNames()
          Return the names of all properties in this MessageContext.
 void removeProperty(String name)
          Removes a property from the MessageContext.
 void setProperty(String name, Object value)
          Sets the name and value of a property associated with the MessageContext.
 
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 Detail

AbstractMessageContext

public AbstractMessageContext()
Method Detail

containsProperty

public boolean containsProperty(String name)
Description copied from interface: MessageContext
Check if this message context contains a property with the given name.

Specified by:
containsProperty in interface MessageContext
Parameters:
name - the name of the property to look for
Returns:
true if the MessageContext contains the property; false otherwise

getProperty

public Object getProperty(String name)
Description copied from interface: MessageContext
Gets the value of a specific property from the MessageContext.

Specified by:
getProperty in interface MessageContext
Parameters:
name - name of the property whose value is to be retrieved
Returns:
value of the property

getPropertyNames

public String[] getPropertyNames()
Description copied from interface: MessageContext
Return the names of all properties in this MessageContext.

Specified by:
getPropertyNames in interface MessageContext
Returns:
the names of all properties in this context, or an empty array if none defined

removeProperty

public void removeProperty(String name)
Description copied from interface: MessageContext
Removes a property from the MessageContext.

Specified by:
removeProperty in interface MessageContext
Parameters:
name - name of the property to be removed

setProperty

public void setProperty(String name,
                        Object value)
Description copied from interface: MessageContext
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.

Specified by:
setProperty in interface MessageContext
Parameters:
name - name of the property associated with the value
value - value of the property

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.