Fields Summary |
---|
protected String | footerText |
protected String | footerHtml |
protected ICommandListservManager | commandListservManagerThe list serv manager |
protected org.apache.oro.text.regex.Perl5Compiler | perl5CompilerFor matching |
protected org.apache.oro.text.regex.Pattern | insertPattern |
protected org.apache.oro.text.regex.Pattern | newlinePattern |
protected org.apache.james.util.XMLResources[] | xmlResources |
protected static final int | TEXT_PLAIN |
protected static final int | TEXT_HTML |
Methods Summary |
---|
protected java.lang.String | getFooterHTML()Get and cache the footer html text
if (footerHtml == null) {
String footerText = getFormattedText(TEXT_HTML);
footerHtml = Util.substitute(new Perl5Matcher(),
newlinePattern,
new StringSubstitution(" <br />"),
footerText,
Util.SUBSTITUTE_ALL);
}
return footerHtml;
|
protected java.lang.String | getFooterText()Get and cache the footer text
if (footerText == null) {
footerText = getFormattedText(TEXT_PLAIN);
}
return footerText;
|
protected java.lang.String | getFormattedText(int index)
return xmlResources[index].getString("text");
|
public java.lang.String | getMailetInfo()Return a string describing this mailet.
return "CommandListservFooter Mailet";
|
public void | init()Initialize the mailet
try {
xmlResources = commandListservManager.initXMLResources(new String[]{"footer", "footer_html"});
} catch (ConfigurationException e) {
throw new MessagingException(e.getMessage(), e);
}
|