org.mule.transport
Interface MessageAdapterSerialization

All Known Implementing Classes:
HttpMessageAdapter, JmsMessageAdapter, WriterMessageAdapter, XmppMessageAdapter

public interface MessageAdapterSerialization

Not all MessageAdapters can be serialized using the native Java serialization as their paylod is not Serializable. These message adapters can implement this interface to help with the serialization of the paylod: the raw bytes are persisted when the message adapter is serialized. Upon deserialization a DefaultMessageAdapter is created to hold this payload.

See Also:
DefaultMuleMessage.writeObject(ObjectOutputStream), DefaultMuleMessage.readObject(ObjectInputStream)

Nested Class Summary
static class MessageAdapterSerialization.Type
           
 
Method Summary
 byte[] getPayloadForSerialization()
           
 

Method Detail

getPayloadForSerialization

byte[] getPayloadForSerialization()
                                  throws Exception
Returns:
The payload of this MessageAdapter as bytes.
Throws:
Exception


Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.