org.camunda.bpm.engine.impl.mail
Class MailTransformer

java.lang.Object
  extended by org.camunda.bpm.engine.impl.mail.MailTransformer

public class MailTransformer
extends Object


Field Summary
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 Summary
MailTransformer(javax.mail.Message message)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTACHMENT_SIZE_LIMIT

public static int ATTACHMENT_SIZE_LIMIT

message

protected javax.mail.Message message

containsHtml

protected boolean containsHtml

messageText

protected StringBuilder messageText

messageHtml

protected StringBuilder messageHtml

recipients

protected List<String> recipients

attachments

protected List<AttachmentEntity> attachments
Constructor Detail

MailTransformer

public MailTransformer(javax.mail.Message message)
                throws Exception
Throws:
Exception
Method Detail

getHtml

public String getHtml()

getAttachments

public List<AttachmentEntity> getAttachments()

processContentPart

protected void processContentPart(int indent,
                                  javax.mail.Part part)
                           throws Exception
Throws:
Exception

getImageMimeType

protected String getImageMimeType(String attachmentName)

processRecipients

protected void processRecipients(javax.mail.Message message)
                          throws Exception
Throws:
Exception

htmlExtractBodyContent

public String htmlExtractBodyContent(String rawHtml)

htmlRemoveStartTag

protected String htmlRemoveStartTag(String html,
                                    String tagName)

htmlRemoveOuterTag

protected String htmlRemoveOuterTag(String html,
                                    String tagName)

getMimeType

public String getMimeType(javax.mail.Part part)
                   throws Exception
Throws:
Exception

getRecipients

public List<String> getRecipients()

setRecipients

public void setRecipients(List<String> recipients)

getMessage

public javax.mail.Message getMessage()


Copyright © 2014 camunda services GmbH. All Rights Reserved.