|
|||||||||||
| 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()
gets the unique identifier for the message. |
void |
setCorrelationId(String id)
Sets a correlationId for this message. |
void |
setReplyTo(Object replyTo)
Sets a replyTo address for this message. |
void |
setSpecification(String newSpec)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public JmsMessageAdapter(Object message)
throws MessagingException
| Method Detail |
public void setSpecification(String newSpec)
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()
UMOMessageAdapter
getUniqueId in interface UMOMessageAdaptergetUniqueId in class AbstractMessageAdapterpublic void setCorrelationId(String id)
setCorrelationId in interface UMOMessageAdaptersetCorrelationId in class AbstractMessageAdapterid - the Id reference for this relationshippublic String getCorrelationId()
getCorrelationId in interface UMOMessageAdaptergetCorrelationId in class AbstractMessageAdapterpublic void setReplyTo(Object replyTo)
setReplyTo in interface UMOMessageAdaptersetReplyTo in class AbstractMessageAdapterreplyTo - the endpointUri url to reply topublic Object getReplyTo()
getReplyTo in interface UMOMessageAdaptergetReplyTo in class AbstractMessageAdapter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||