Class AbstractMessageContext

java.lang.Object
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 Details

    • AbstractMessageContext

      public AbstractMessageContext()
  • Method Details

    • 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