|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.mailet.GenericMailet org.apache.james.transport.mailets.AbstractAddFooter org.apache.james.transport.mailets.CommandListservFooter
public class 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 java.lang.String |
footerHtml
|
protected java.lang.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 java.lang.String |
getFooterHTML()
Get and cache the footer html text |
protected java.lang.String |
getFooterText()
Get and cache the footer text |
protected java.lang.String |
getFormattedText(int index)
|
java.lang.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 java.lang.String footerText
protected java.lang.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 javax.mail.MessagingException
init
in class GenericMailet
javax.mail.MessagingException
- if an exception occurs that interrupts the mailet's normal operationpublic java.lang.String getMailetInfo()
getMailetInfo
in interface Mailet
getMailetInfo
in class GenericMailet
protected java.lang.String getFooterText()
getFooterText
in class AbstractAddFooter
XMLResources
protected java.lang.String getFooterHTML()
getFooterHTML
in class AbstractAddFooter
XMLResources
protected java.lang.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 |