aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/HTMLRendererTemplateCallbackUtils.java
blob: 0cb44a33df4cdec173f8a034e0c5bf4f189d8fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.libmailcore;

import java.util.Map;

/** Default implementations for HTMLRendererTemplateCallback */
public class HTMLRendererTemplateCallbackUtils {
    native static boolean canPreviewPart(AbstractPart part);
    native static boolean shouldShowPart(AbstractPart part);
    native static Map<String, String> templateValuesForHeader(MessageHeader header);
    native static Map<String, String> templateValuesForPart(AbstractPart part);
    native static String templateForMainHeader(MessageHeader header);
    native static String templateForImage(AbstractPart part);
    native static String templateForAttachment(AbstractPart part);
    native static String templateForMessage(AbstractMessage message);
    native static String templateForEmbeddedMessage(AbstractMessagePart messagePart);
    native static String templateForEmbeddedMessageHeader(MessageHeader header);
    native static String templateForAttachmentSeparator();
    native static String cleanHTML(String html);
    native static String filterHTMLForPart(String html);
    native static String filterHTMLForMessage(String html);
}