|
|||||||||||
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, DEFAULT_FAILFAST, encoding, exceptionPayload, id, logger, properties, READ, WRITE |
Constructor Summary | |
protected |
JmsMessageAdapter(JmsMessageAdapter template)
|
|
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. |
ThreadSafeAccess |
newThreadCopy()
By default we return "this". |
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
protected JmsMessageAdapter(JmsMessageAdapter template)
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 exceptionpublic byte[] getPayloadAsBytes() throws Exception
Exception
- Implemetation may throw an endpoint specific exceptionpublic Object getPayload()
public String getUniqueId()
UMOMessageAdapter
getUniqueId
in interface UMOMessageAdapter
getUniqueId
in class AbstractMessageAdapter
public void setCorrelationId(String id)
setCorrelationId
in interface UMOMessageAdapter
setCorrelationId
in class AbstractMessageAdapter
id
- the Id reference for this relationshippublic String getCorrelationId()
getCorrelationId
in interface UMOMessageAdapter
getCorrelationId
in class AbstractMessageAdapter
public void setReplyTo(Object replyTo)
setReplyTo
in interface UMOMessageAdapter
setReplyTo
in class AbstractMessageAdapter
replyTo
- the endpointUri url to reply topublic Object getReplyTo()
getReplyTo
in interface UMOMessageAdapter
getReplyTo
in class AbstractMessageAdapter
public ThreadSafeAccess newThreadCopy()
AbstractMessageAdapter
newThreadCopy
in interface ThreadSafeAccess
newThreadCopy
in class AbstractMessageAdapter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |