Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mule.providers.vm
Class MuleMessageAdapter  view MuleMessageAdapter download MuleMessageAdapter.java

java.lang.Object
  extended byorg.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 $

Field Summary
(package private)  java.lang.Object message
          The message itself in this case an UMOEvent
(package private)  java.util.HashMap props
          Any properties bound to the message
 
Constructor Summary
MuleMessageAdapter()
           
 
Method Summary
 java.lang.Object getMessage()
           
 byte[] getMessageAsBytes()
          Converts the message implementation into a String representation
 java.lang.String getMessageAsString()
          Converts the message implementation into a String representation
 java.lang.Object getProperty(java.lang.Object key)
          Gets a property of the message implementation
 java.util.Iterator getPropertyNames()
           
 void setMessage(java.lang.Object message)
           
 void setProperty(java.lang.Object key, java.lang.Object value)
          Gets a property of the message implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

message

java.lang.Object message
The message itself in this case an UMOEvent


props

java.util.HashMap props
Any properties bound to the message

Constructor Detail

MuleMessageAdapter

public MuleMessageAdapter()
Method Detail

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