public class MessageBody extends Object implements MessageContent
MessageContent.MessageContentType| Modifier and Type | Field and Description |
|---|---|
static String |
XML_ELM_NAME |
| Constructor and Description |
|---|
MessageBody(String content) |
| Modifier and Type | Method and Description |
|---|---|
StringBuilder |
appendXml(StringBuilder sb)
Generate XML String out of the this entity, And append this string to
given
StringBuilder and return it. |
String |
getContent() |
boolean |
isContentType(MessageContent.MessageContentType type) |
boolean |
isMimeCarrier() |
String |
toString() |
String |
xml()
Generate XML String out of the this entity.
|
public static final String XML_ELM_NAME
public MessageBody(String content)
public boolean isContentType(MessageContent.MessageContentType type)
isContentType in interface MessageContentpublic boolean isMimeCarrier()
isMimeCarrier in interface PacketContentpublic String getContent()
public String xml()
XMLConvertiblexml in interface XMLConvertiblepublic StringBuilder appendXml(StringBuilder sb)
XMLConvertibleStringBuilder and return it.appendXml in interface XMLConvertiblesb - stringCopyright © 2019. All rights reserved.