|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.providers.AbstractMessageAdapter
org.mule.impl.message.BaseMessage
BaseMessage
A default message implementation
Field Summary | |
protected java.lang.Object |
message
|
Fields inherited from class org.mule.providers.AbstractMessageAdapter |
properties |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mule.umo.provider.UMOMessageAdapter |
getBooleanProperty, getCorrelationGroupSize, getCorrelationId, getCorrelationSequence, getDoubleProperty, getErrorCode, getIntProperty, getLongProperty, getProperty, getProperty, getPropertyNames, getReplyTo, getUniqueId, removeProperty, setBooleanProperty, setCorrelationGroupSize, setCorrelationId, setCorrelationSequence, setDoubleProperty, setErrorCode, setIntProperty, setLongProperty, setProperty, setReplyTo |
Field Detail |
protected java.lang.Object message
Constructor Detail |
public BaseMessage(java.lang.Object message)
Method Detail |
public java.lang.String getPayloadAsString() throws java.lang.Exception
getPayloadAsString
in interface UMOMessageAdapter
java.lang.Exception
- Implementation may throw an endpoint specific exceptionpublic byte[] getPayloadAsBytes() throws java.lang.Exception
getPayloadAsBytes
in interface UMOMessageAdapter
java.lang.Exception
- Implemetation may throw an endpoint specific exceptionpublic java.lang.Object getPayload()
getPayload
in interface UMOMessageAdapter
public void addProperties(java.util.Map properties)
addProperties
in interface UMOMessage
properties
- the properties add to this messagepublic void clearProperties()
clearProperties
in interface UMOMessage
public java.util.Map getProperties()
getProperties
in interface UMOMessage
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |