public class MailTransformer extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ATTACHMENT_SIZE_LIMIT |
protected List<AttachmentEntity> |
attachments |
protected boolean |
containsHtml |
protected javax.mail.Message |
message |
protected StringBuilder |
messageHtml |
protected StringBuilder |
messageText |
protected List<String> |
recipients |
Constructor and Description |
---|
MailTransformer(javax.mail.Message message) |
Modifier and Type | Method and Description |
---|---|
List<AttachmentEntity> |
getAttachments() |
String |
getHtml() |
protected String |
getImageMimeType(String attachmentName) |
javax.mail.Message |
getMessage() |
String |
getMimeType(javax.mail.Part part) |
List<String> |
getRecipients() |
String |
htmlExtractBodyContent(String rawHtml) |
protected String |
htmlRemoveOuterTag(String html,
String tagName) |
protected String |
htmlRemoveStartTag(String html,
String tagName) |
protected void |
processContentPart(int indent,
javax.mail.Part part) |
protected void |
processRecipients(javax.mail.Message message) |
void |
setRecipients(List<String> recipients) |
public static int ATTACHMENT_SIZE_LIMIT
protected javax.mail.Message message
protected boolean containsHtml
protected StringBuilder messageText
protected StringBuilder messageHtml
protected List<AttachmentEntity> attachments
public String getHtml()
public List<AttachmentEntity> getAttachments()
protected void processContentPart(int indent, javax.mail.Part part) throws Exception
Exception
protected void processRecipients(javax.mail.Message message) throws Exception
Exception
public javax.mail.Message getMessage()
Copyright © 2015. All rights reserved.