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)
getPayloadForSerialization
byte[] getPayloadForSerialization()
throws Exception
- Returns:
- The payload of this MessageAdapter as bytes.
- Throws:
Exception
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.