|
|||||||||||
| 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 |
attachments, encoding, exceptionPayload, id, logger, properties |
| Constructor Summary | |
JmsMessageAdapter(Object message)
|
|
| Method Summary | |
String |
getCorrelationId()
Sets a correlationId for 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 |
Object |
getReplyTo()
Sets a replyTo address for this message. |
String |
getUniqueId()
|
void |
setCorrelationId(String id)
Sets a correlationId for this message. |
void |
setReplyTo(Object replyTo)
Sets a replyTo address for this message. |
| Methods inherited from class org.mule.providers.AbstractMessageAdapter |
addAttachment, addProperties, clearProperties, convertToBytes, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getPayloadAsString, getProperty, getProperty, getPropertyNames, getStringProperty, removeAttachment, removeProperty, setBooleanProperty, setCorrelationGroupSize, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, setStringProperty, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JmsMessageAdapter(Object message)
throws org.mule.umo.MessagingException
| Method Detail |
public String getPayloadAsString(String encoding)
throws Exception
encoding - The encoding to use when transforming the message (if necessary). The parameter is
used when converting from a byte array
Exception - Implementation may throw an endpoint specific exception
public byte[] getPayloadAsBytes()
throws Exception
Exception - Implemetation may throw an endpoint specific exceptionpublic Object getPayload()
public String getUniqueId()
public void setCorrelationId(String id)
id - the Id reference for this relationshippublic String getCorrelationId()
public void setReplyTo(Object replyTo)
replyTo - the endpointUri url to reply topublic Object getReplyTo()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||