org.jboss.soa.esb.message.body.content
Interface ObjectBody

All Superinterfaces:
Body

public interface ObjectBody
extends Body

Similar to JMS, the Message payload only contains a serializable Object.


Field Summary
 
Fields inherited from interface org.jboss.soa.esb.message.Body
DEFAULT_LOCATION
 
Method Summary
 java.io.Serializable getObject()
          Obtain the Object from the Body.
 void setObject(java.io.Serializable value)
          Add the Object element to the Body.
 
Methods inherited from interface org.jboss.soa.esb.message.Body
add, add, get, get, getByteArray, getContents, getNames, merge, remove, replace, setByteArray, setContents
 

Method Detail

setObject

void setObject(java.io.Serializable value)
Add the Object element to the Body.

Parameters:
value - the Object to add.

getObject

java.io.Serializable getObject()
                               throws InvalidPayloadException
Obtain the Object from the Body.

Returns:
the Object.
Throws:
InvalidPayloadException