|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.message.BaseMessage
BaseMessage
A default message implementation used for messages
sent over the wire. client messages should NOT implement UMOMessage.
Field Summary | |
protected java.util.Map |
context
|
protected java.lang.Object |
message
|
Constructor Summary | |
BaseMessage(java.lang.Object message)
|
Method Summary | |
void |
addProperties(java.util.Map properties)
Adds a map of properties to associated with this message |
void |
clearProperties()
Removes all properties on this message |
java.lang.Object |
getPayload()
|
byte[] |
getPayloadAsBytes()
Converts the message implementation into a String representation |
java.lang.String |
getPayloadAsString()
Converts the message implementation into a String representation |
java.util.Map |
getProperties()
Returns a map of all properties on this message |
java.lang.Object |
getProperty(java.lang.Object key)
|
void |
setProperty(java.lang.Object key,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.Object message
protected java.util.Map context
Constructor Detail |
public BaseMessage(java.lang.Object message)
Method Detail |
public java.lang.String getPayloadAsString() throws java.lang.Exception
java.lang.Exception
- Implementation may throw an endpoint specific exceptionpublic byte[] getPayloadAsBytes() throws java.lang.Exception
java.lang.Exception
- Implemetation may throw an endpoint specific exceptionpublic java.lang.Object getPayload()
public void addProperties(java.util.Map properties)
properties
- the properties add to this messagepublic void clearProperties()
public java.util.Map getProperties()
public void setProperty(java.lang.Object key, java.lang.Object value)
public java.lang.Object getProperty(java.lang.Object key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |