public class MailDataMsgBodyUtility
extends java.lang.Object
Constructor and Description |
---|
MailDataMsgBodyUtility() |
Modifier and Type | Method and Description |
---|---|
static java.util.List |
getImgSrcCidUris(java.lang.String msgBody)
This method searches a message's HTML message body, creates and returns a list of all of the content-id URIs found.
|
static boolean |
imgSrcCidUriContainsBodyCid(java.util.List<java.lang.String> imgCidUris,
java.lang.String bodyCid)
This method sifts though a list of image source content-id URIs to determine if there's an occurrence of a raw message body contained content-id.
|
static boolean |
messageBodyContainsHtml(java.lang.String msgBody) |
static java.lang.String |
replaceSrcCidUriWithWebUrl(java.lang.String msgBody,
java.lang.String bodyCid,
java.lang.String webUrl) |
public static boolean messageBodyContainsHtml(java.lang.String msgBody)
msgBody
- public static java.util.List getImgSrcCidUris(java.lang.String msgBody)
msgBody
- public static boolean imgSrcCidUriContainsBodyCid(java.util.List<java.lang.String> imgCidUris, java.lang.String bodyCid)
imgCidUris
- The list of content ID URIs to sift through.bodyCid
- The content ID we're seeking.public static java.lang.String replaceSrcCidUriWithWebUrl(java.lang.String msgBody, java.lang.String bodyCid, java.lang.String webUrl)
msgBody
- The body of the message.bodyCid
- The message body content ID.webUrl
- The image doc URL used to replace the source value.