|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mailet.base.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.base.GenericMailet |
---|
arrayToString, checkInitParameters, destroy, getInitParameter, 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 org.apache.mailet.base.GenericMailet
javax.mail.MessagingException
public java.lang.String getMailetInfo()
getMailetInfo
in interface org.apache.mailet.Mailet
getMailetInfo
in class org.apache.mailet.base.GenericMailet
protected java.lang.String getFooterText()
getFooterText
in class org.apache.james.transport.mailets.AbstractAddFooter
XMLResources
protected java.lang.String getFooterHTML()
getFooterHTML
in class org.apache.james.transport.mailets.AbstractAddFooter
XMLResources
protected java.lang.String getFormattedText(int index)
index
- either TEXT_PLAIN
or TEXT_HTML
XMLResources.getString(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |