|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mailet.GenericMailet
org.apache.james.transport.mailets.AbstractAddFooter
org.apache.james.transport.mailets.CommandListservFooter
CommandListservFooter is based on the AddFooter mailet.
It is used by the CommandListservProcessor
to inject a footer into mailing list.
XMLResources
Field Summary | |
protected ICommandListservManager |
commandListservManager
The list serv manager |
protected String |
footerHtml
|
protected String |
footerText
|
protected org.apache.oro.text.regex.Pattern |
insertPattern
|
protected org.apache.oro.text.regex.Pattern |
newlinePattern
|
protected org.apache.oro.text.regex.Perl5Compiler |
perl5Compiler
For matching |
protected static int |
TEXT_HTML
|
protected static int |
TEXT_PLAIN
|
protected XMLResources[] |
xmlResources
|
Constructor Summary | |
CommandListservFooter(ICommandListservManager commandListservManager)
|
Method Summary | |
protected String |
getFooterHTML()
Get and cache the footer html text |
protected String |
getFooterText()
Get and cache the footer text |
protected String |
getFormattedText(int index)
|
String |
getMailetInfo()
Return a string describing this mailet. |
void |
init()
Initialize the mailet |
Methods inherited from class org.apache.james.transport.mailets.AbstractAddFooter |
addToHTML, addToText, attachFooter, service |
Methods inherited from class org.apache.mailet.GenericMailet |
destroy, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String footerText
protected String footerHtml
protected ICommandListservManager commandListservManager
protected org.apache.oro.text.regex.Perl5Compiler perl5Compiler
protected org.apache.oro.text.regex.Pattern insertPattern
protected org.apache.oro.text.regex.Pattern newlinePattern
protected XMLResources[] xmlResources
protected static final int TEXT_PLAIN
protected static final int TEXT_HTML
Constructor Detail |
public CommandListservFooter(ICommandListservManager commandListservManager)
Method Detail |
public void init() throws MessagingException
init
in class GenericMailet
MessagingException
- if an exception occurs that interrupts the mailet's normal operationpublic String getMailetInfo()
getMailetInfo
in interface Mailet
getMailetInfo
in class GenericMailet
protected String getFooterText()
getFooterText
in class AbstractAddFooter
XMLResources
protected String getFooterHTML()
getFooterHTML
in class AbstractAddFooter
XMLResources
protected String getFormattedText(int index)
index
- either TEXT_PLAIN
or TEXT_HTML
XMLResources.getString(java.lang.String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |