|
|||||||||||
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
An abstract implementation of a mailet that add a Footer to an email
Constructor Summary | |
AbstractAddFooter()
|
Method Summary | |
protected void |
addToHTML(MimePart part)
Prepends the content of the MimePart as HTML to the existing footer |
protected void |
addToText(MimePart part)
Prepends the content of the MimePart as text to the existing footer |
protected boolean |
attachFooter(MimePart part)
Attach a footer a MimePart |
protected abstract String |
getFooterHTML()
This is exposed as a method for easy subclassing to provide alternate ways to get the footer text. |
protected abstract String |
getFooterText()
This is exposed as a method for easy subclassing to provide alternate ways to get the footer text. |
void |
service(Mail mail)
Takes the message and attaches a footer message to it. |
Methods inherited from class org.apache.mailet.GenericMailet |
destroy, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, getMailetInfo, getMailetName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractAddFooter()
Method Detail |
public void service(Mail mail) throws MessagingException
service
in interface Mailet
service
in class GenericMailet
mail
- the mail being processed
MessagingException
- if an error arises during message processingprotected void addToText(MimePart part) throws MessagingException, IOException
part
- the MimePart to attach
MessagingException
IOException
protected void addToHTML(MimePart part) throws MessagingException, IOException
part
- the MimePart to attach
MessagingException
IOException
protected boolean attachFooter(MimePart part) throws MessagingException, IOException
part
- the MimePart to which the footer is to be attached
MessagingException
IOException
protected abstract String getFooterText()
protected abstract String getFooterHTML()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |