public interface HTMLRendererTemplateCallback
Modifier and Type | Method and Description |
---|---|
boolean |
canPreviewPart(AbstractPart part)
Returns true if an attachment should be rendered using the image template.
|
java.lang.String |
cleanHTML(java.lang.String html)
Clean a HTML string.
|
java.lang.String |
filterHTMLForMessage(java.lang.String html)
Filter the HTML when rendering a the whole message.
|
java.lang.String |
filterHTMLForPart(java.lang.String html)
Filter the HTML when rendering a given part.
|
boolean |
shouldShowPart(AbstractPart part)
Returns true if an attachment should (such as an image) be shown.
|
java.lang.String |
templateForAttachment(AbstractPart part)
Returns the template to render a non-image attachment.
|
java.lang.String |
templateForAttachmentSeparator()
Returns the separator between the text of the message and the attachments.
|
java.lang.String |
templateForEmbeddedMessage(AbstractMessagePart messagePart)
Returns the template to render an embedded message.
|
java.lang.String |
templateForEmbeddedMessageHeader(MessageHeader header)
Returns the template for the header of an embedded message.
|
java.lang.String |
templateForImage(AbstractPart part)
Returns the template to render an image.
|
java.lang.String |
templateForMainHeader(MessageHeader header)
Returns the template for the main header of the message.
|
java.lang.String |
templateForMessage(AbstractMessage message)
Returns the template to render a message.
|
java.util.Map<java.lang.String,java.lang.String> |
templateValuesForHeader(MessageHeader header)
Returns the values used in the header template for a given template.
|
java.util.Map<java.lang.String,java.lang.String> |
templateValuesForPart(AbstractPart part)
Returns the values used in the attachment template for a given attachment.
|
boolean canPreviewPart(AbstractPart part)
boolean shouldShowPart(AbstractPart part)
java.util.Map<java.lang.String,java.lang.String> templateValuesForHeader(MessageHeader header)
java.util.Map<java.lang.String,java.lang.String> templateValuesForPart(AbstractPart part)
java.lang.String templateForMainHeader(MessageHeader header)
java.lang.String templateForImage(AbstractPart part)
java.lang.String templateForAttachment(AbstractPart part)
java.lang.String templateForMessage(AbstractMessage message)
java.lang.String templateForEmbeddedMessage(AbstractMessagePart messagePart)
java.lang.String templateForEmbeddedMessageHeader(MessageHeader header)
java.lang.String templateForAttachmentSeparator()
java.lang.String cleanHTML(java.lang.String html)
java.lang.String filterHTMLForPart(java.lang.String html)
java.lang.String filterHTMLForMessage(java.lang.String html)