|
||||||||||
| 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.
| 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()
|
org.mule.api.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 org.mule.transport.AbstractMessageAdapter |
|---|
addAttachment, addInboundProperties, addProperties, assertAccess, clearProperties, getAttachment, getAttachmentNames, getBooleanProperty, getCorrelationGroupSize, getCorrelationSequence, getDoubleProperty, getEncoding, getExceptionPayload, getIntProperty, getLongProperty, getProperty, getProperty, getPropertyNames, getStringProperty, isDisabled, newException, release, removeAttachment, removeProperty, resetAccessControl, setBooleanProperty, setCorrelationGroupSize, setCorrelationSequence, setDoubleProperty, setEncoding, setExceptionPayload, setIntProperty, setLongProperty, setProperty, 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.api.MessagingException
org.mule.api.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 org.mule.api.transport.MessageAdaptergetUniqueId in class org.mule.transport.AbstractMessageAdapterpublic void setCorrelationId(String id)
setCorrelationId in interface org.mule.api.transport.MessageAdaptersetCorrelationId in class org.mule.transport.AbstractMessageAdapterid - the Id reference for this relationshippublic String getCorrelationId()
getCorrelationId in interface org.mule.api.transport.MessageAdaptergetCorrelationId in class org.mule.transport.AbstractMessageAdapterpublic void setReplyTo(Object replyTo)
setReplyTo in interface org.mule.api.transport.MessageAdaptersetReplyTo in class org.mule.transport.AbstractMessageAdapterreplyTo - the endpointUri url to reply topublic Object getReplyTo()
getReplyTo in interface org.mule.api.transport.MessageAdaptergetReplyTo in class org.mule.transport.AbstractMessageAdapterpublic org.mule.api.ThreadSafeAccess newThreadCopy()
newThreadCopy in interface org.mule.api.ThreadSafeAccessnewThreadCopy in class org.mule.transport.AbstractMessageAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||