org.mule.message
Class BaseMessageDTO

java.lang.Object
  extended by org.mule.message.BaseMessageDTO
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DefaultMuleMessageDTO, ExceptionMessage

public class BaseMessageDTO
extends java.lang.Object
implements java.io.Serializable

BaseMessage A default message implementation used for messages sent over the wire. client messages must NOT implement MuleMessage.

See Also:
Serialized Form

Field Summary
protected  java.util.Map<java.lang.String,java.lang.Object> properties
           
 
Constructor Summary
BaseMessageDTO()
           
BaseMessageDTO(java.lang.Object payload)
           
 
Method Summary
 void addProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
          Adds a map of properties to associated with this message
 void clearProperties()
          Removes all properties on this message
 java.lang.Object getPayload()
           
 java.util.Map getProperties()
          Returns a map of all properties on this message
 java.lang.Object getProperty(java.lang.String key)
           
 void setPayload(java.lang.Object payload)
           
 void setProperty(java.lang.String key, java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

properties

protected java.util.Map<java.lang.String,java.lang.Object> properties
Constructor Detail

BaseMessageDTO

public BaseMessageDTO()

BaseMessageDTO

public BaseMessageDTO(java.lang.Object payload)
Method Detail

setPayload

public void setPayload(java.lang.Object payload)

getPayload

public java.lang.Object getPayload()
Returns:
the current message

addProperties

public void addProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Adds a map of properties to associated with this message

Parameters:
properties - the properties add to this message

clearProperties

public void clearProperties()
Removes all properties on this message


getProperties

public java.util.Map getProperties()
Returns a map of all properties on this message

Returns:
a map of all properties on this message

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)

getProperty

public java.lang.Object getProperty(java.lang.String key)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.