|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.AbstractMessageAdapter
org.mule.transport.jms.JmsMessageAdapter
public class JmsMessageAdapter
JmsMessageAdapter allows a DefaultMuleEvent 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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.mule.api.ThreadSafeAccess |
|---|
ThreadSafeAccess.AccessControl |
| Field Summary |
|---|
| Fields inherited from class org.mule.transport.AbstractMessageAdapter |
|---|
attachments, encoding, exceptionPayload, id, logger, properties |
| Fields inherited from interface org.mule.api.ThreadSafeAccess |
|---|
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()
|
ThreadSafeAccess |
newThreadCopy()
|
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
MessagingExceptionprotected 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 exception
public byte[] getPayloadAsBytes()
throws Exception
Exception - Implemetation may throw an endpoint specific exceptionpublic Object getPayload()
public String getUniqueId()
getUniqueId in interface MessageAdaptergetUniqueId in class AbstractMessageAdapterpublic void setCorrelationId(String id)
setCorrelationId in interface MessageAdaptersetCorrelationId in class AbstractMessageAdapterid - the Id reference for this relationshippublic String getCorrelationId()
getCorrelationId in interface MessageAdaptergetCorrelationId in class AbstractMessageAdapterpublic void setReplyTo(Object replyTo)
setReplyTo in interface MessageAdaptersetReplyTo in class AbstractMessageAdapterreplyTo - the endpointUri url to reply topublic Object getReplyTo()
getReplyTo in interface MessageAdaptergetReplyTo in class AbstractMessageAdapterpublic ThreadSafeAccess newThreadCopy()
newThreadCopy in interface ThreadSafeAccessnewThreadCopy in class AbstractMessageAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||