|
||||||||||
| 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
public abstract class AbstractAddFooter
An abstract implementation of a mailet that add a Footer to an email
| Constructor Summary | |
|---|---|
AbstractAddFooter()
|
|
| Method Summary | |
|---|---|
protected void |
addToHTML(javax.mail.internet.MimePart part)
Prepends the content of the MimePart as HTML to the existing footer |
protected void |
addToText(javax.mail.internet.MimePart part)
Prepends the content of the MimePart as text to the existing footer |
protected boolean |
attachFooter(javax.mail.internet.MimePart part)
Attach a footer a MimePart |
protected abstract java.lang.String |
getFooterHTML()
This is exposed as a method for easy subclassing to provide alternate ways to get the footer text. |
protected abstract java.lang.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 javax.mail.MessagingException
service in interface Mailetservice in class GenericMailetmail - the mail being processed
javax.mail.MessagingException - if an error arises during message processing
protected void addToText(javax.mail.internet.MimePart part)
throws javax.mail.MessagingException,
java.io.IOException
part - the MimePart to attach
javax.mail.MessagingException
java.io.IOException
protected void addToHTML(javax.mail.internet.MimePart part)
throws javax.mail.MessagingException,
java.io.IOException
part - the MimePart to attach
javax.mail.MessagingException
java.io.IOException
protected boolean attachFooter(javax.mail.internet.MimePart part)
throws javax.mail.MessagingException,
java.io.IOException
part - the MimePart to which the footer is to be attached
javax.mail.MessagingException
java.io.IOExceptionprotected abstract java.lang.String getFooterText()
protected abstract java.lang.String getFooterHTML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||