|
||||||||||
| 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.DefaultMessageAdapter
public final class DefaultMessageAdapter
DefaultMessageAdapter can be used to wrap an arbitary object where
no special 'apapting' is needed. The adapter allows for a set of properties to be
associated with an object.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.mule.api.ThreadSafeAccess |
|---|
ThreadSafeAccess.AccessControl |
| Field Summary | |
|---|---|
protected Object |
message
The message object wrapped by this adapter |
| Fields inherited from class org.mule.transport.AbstractMessageAdapter |
|---|
attachments, exceptionPayload, id, logger, properties |
| Fields inherited from interface org.mule.api.ThreadSafeAccess |
|---|
READ, WRITE |
| Constructor Summary | |
|---|---|
protected |
DefaultMessageAdapter()
|
|
DefaultMessageAdapter(Object message)
Creates a default message adapter with properties and attachments |
|
DefaultMessageAdapter(Object message,
Map properties,
Map attachments)
Creates a default message adapter with properties and attachments |
|
DefaultMessageAdapter(Object message,
MessageAdapter previous)
|
| Method Summary | |
|---|---|
Object |
getPayload()
|
String |
getUniqueId()
gets the unique identifier for the message. It's up to the implementation to ensure a unique id |
ThreadSafeAccess |
newThreadCopy()
|
void |
setPayload(Object payload)
Update the message payload. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Object message
| Constructor Detail |
|---|
protected DefaultMessageAdapter()
public DefaultMessageAdapter(Object message)
message - the message to wrap. If this is null and NullPayload object
will be usedNullPayload
public DefaultMessageAdapter(Object message,
MessageAdapter previous)
public DefaultMessageAdapter(Object message,
Map properties,
Map attachments)
message - the message to wrap. If this is null and NullPayload object
will be usedproperties - a map properties to set on the adapter. Can be null.attachments - a map attaches (DataHandler objects) to set on the adapter.
Can be null.NullPayload,
DataHandler| Method Detail |
|---|
public Object getPayload()
getPayload in interface MessageAdapterpublic void setPayload(Object payload)
setPayload in interface MutableMessageAdapterpayload - the object to assign as the message payloadpublic String getUniqueId()
getUniqueId in interface MessageAdaptergetUniqueId 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 | |||||||||