|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.providers.AbstractMessageAdapter
org.mule.providers.jms.JmsMessageAdapter
JmsMessageAdapter
allows a MuleEvent
to access the properties and payload of a JMS Message in a uniform way. The JmsMessageAdapter expects a message of type javax.jms.Message and will throw an IllegalArgumentException if the source message type is not compatible.
The JmsMessageAdapter should be suitable for all JMS Connector implementations.
Field Summary |
Fields inherited from class org.mule.providers.AbstractMessageAdapter |
exceptionPayload, properties |
Constructor Summary | |
JmsMessageAdapter(java.lang.Object message)
|
Method Summary | |
java.lang.String |
getCorrelationId()
Sets a correlationId for 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.lang.Object |
getReplyTo()
Sets a replyTo address for this message. |
java.lang.String |
getUniqueId()
gets the unique identifier for the message. |
void |
setCorrelationId(java.lang.String id)
Sets a correlationId for this message. |
void |
setProperty(java.lang.Object key,
java.lang.Object value)
Set a property on the message |
Methods inherited from class org.mule.providers.AbstractMessageAdapter |
getBooleanProperty, getCorrelationGroupSize, getCorrelationSequence, getDoubleProperty, getExceptionPayload, getIntProperty, getLongProperty, getProperty, getProperty, getPropertyNames, removeProperty, setBooleanProperty, setCorrelationGroupSize, setCorrelationSequence, setDoubleProperty, setExceptionPayload, setIntProperty, setLongProperty, setReplyTo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JmsMessageAdapter(java.lang.Object message) throws MessagingException
Method Detail |
public java.lang.String getPayloadAsString() throws java.lang.Exception
java.lang.Exception
- Implemetation 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 java.lang.String getUniqueId() throws UniqueIdNotSupportedException
UMOMessageAdapter
getUniqueId
in interface UMOMessageAdapter
getUniqueId
in class AbstractMessageAdapter
UniqueIdNotSupportedException
public void setCorrelationId(java.lang.String id)
setCorrelationId
in interface UMOMessageAdapter
setCorrelationId
in class AbstractMessageAdapter
id
- the Id reference for this relationshippublic java.lang.String getCorrelationId()
getCorrelationId
in interface UMOMessageAdapter
getCorrelationId
in class AbstractMessageAdapter
public java.lang.Object getReplyTo()
getReplyTo
in interface UMOMessageAdapter
getReplyTo
in class AbstractMessageAdapter
public void setProperty(java.lang.Object key, java.lang.Object value)
UMOMessageAdapter
setProperty
in interface UMOMessageAdapter
setProperty
in class AbstractMessageAdapter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |