java.lang.Object
org.mule.providers.vm.MuleMessageAdapter
- All Implemented Interfaces:
- org.mule.umo.provider.UMOMessageAdapter
- public class MuleMessageAdapter
- extends java.lang.Object
- implements org.mule.umo.provider.UMOMessageAdapter
MuleMessageAdapter provides a common abstraction of Mule Event message.
The message adapter allows a Mule event to be read and manipulated like any other object
data type from any external system that has a Mule provider implementation.
- Version:
- $Revision: 1.4 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
message
java.lang.Object message
- The message itself in this case an UMOEvent
props
java.util.HashMap props
- Any properties bound to the message
MuleMessageAdapter
public MuleMessageAdapter()
getProperty
public java.lang.Object getProperty(java.lang.Object key)
- Gets a property of the message implementation
- Specified by:
getProperty in interface org.mule.umo.provider.UMOMessageAdapter
setProperty
public void setProperty(java.lang.Object key,
java.lang.Object value)
- Gets a property of the message implementation
- Specified by:
setProperty in interface org.mule.umo.provider.UMOMessageAdapter
getMessageAsString
public java.lang.String getMessageAsString()
throws java.lang.Exception
- Converts the message implementation into a String representation
- Specified by:
getMessageAsString in interface org.mule.umo.provider.UMOMessageAdapter
getPropertyNames
public java.util.Iterator getPropertyNames()
- Specified by:
getPropertyNames in interface org.mule.umo.provider.UMOMessageAdapter
getMessageAsBytes
public byte[] getMessageAsBytes()
throws java.lang.Exception
- Converts the message implementation into a String representation
- Specified by:
getMessageAsBytes in interface org.mule.umo.provider.UMOMessageAdapter
getMessage
public java.lang.Object getMessage()
- Specified by:
getMessage in interface org.mule.umo.provider.UMOMessageAdapter
setMessage
public void setMessage(java.lang.Object message)
- Specified by:
setMessage in interface org.mule.umo.provider.UMOMessageAdapter