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

All Superinterfaces:
Body

public interface TextBody
extends Body

Similar to JMS, the Message payload only contains a String.


Field Summary
 
Fields inherited from interface org.jboss.soa.esb.message.Body
DEFAULT_LOCATION
 
Method Summary
 java.lang.String getText()
          Obtain the Text from the Body.
 void setText(java.lang.String value)
          Add the Text 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

setText

void setText(java.lang.String value)
Add the Text element to the Body.

Parameters:
value - the String to add.

getText

java.lang.String getText()
                         throws InvalidPayloadException
Obtain the Text from the Body.

Returns:
the String.
Throws:
InvalidPayloadException