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