public class MessageMedia extends Object implements MessageContent
MessageContent.MessageContentType| Modifier and Type | Field and Description |
|---|---|
static String |
XML_ELM_NAME |
| Constructor and Description |
|---|
MessageMedia(String mediaId) |
MessageMedia(String mediaId,
ContentType contentType) |
| 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. |
ContentType |
getContentType() |
String |
getMediaId() |
String |
getThumb() |
boolean |
isContentType(MessageContent.MessageContentType type) |
boolean |
isMimeCarrier() |
void |
setContentType(ContentType contentType) |
void |
setMediaId(String mediaId) |
void |
setThumb(String thumb) |
String |
toString() |
String |
xml()
Generate XML String out of the this entity.
|
public static final String XML_ELM_NAME
public MessageMedia(String mediaId)
public MessageMedia(String mediaId, ContentType contentType)
public String getMediaId()
public void setMediaId(String mediaId)
public ContentType getContentType()
public void setContentType(ContentType contentType)
public String getThumb()
public void setThumb(String thumb)
public boolean isContentType(MessageContent.MessageContentType type)
isContentType in interface MessageContentpublic boolean isMimeCarrier()
isMimeCarrier in interface PacketContentpublic String xml()
XMLConvertiblexml in interface XMLConvertiblepublic StringBuilder appendXml(StringBuilder sb)
XMLConvertibleStringBuilder and return it.appendXml in interface XMLConvertiblesb - stringCopyright © 2019. All rights reserved.