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.
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 |
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