| java.lang.Object org.apache.mailet.GenericMailet org.apache.james.transport.mailets.AbstractAddFooter
All known Subclasses: org.apache.james.transport.mailets.AddFooter, org.apache.james.transport.mailets.CommandListservFooter,
AbstractAddFooter | abstract public class AbstractAddFooter extends GenericMailet (Code) | | An abstract implementation of a mailet that add a Footer to an email
|
Method Summary | |
protected void | addToHTML(MimePart part) | protected void | addToText(MimePart part) | protected boolean | attachFooter(MimePart part) | abstract protected String | getFooterHTML() This is exposed as a method for easy subclassing to provide alternate ways
to get the footer text. | abstract protected String | getFooterText() This is exposed as a method for easy subclassing to provide alternate ways
to get the footer text. | public void | service(Mail mail) Takes the message and attaches a footer message to it. |
addToHTML | protected void addToHTML(MimePart part) throws MessagingException, IOException(Code) | | Prepends the content of the MimePart as HTML to the existing footer
Parameters: part - the MimePart to attach throws: MessagingException - throws: IOException - |
addToText | protected void addToText(MimePart part) throws MessagingException, IOException(Code) | | Prepends the content of the MimePart as text to the existing footer
Parameters: part - the MimePart to attach throws: MessagingException - throws: IOException - |
attachFooter | protected boolean attachFooter(MimePart part) throws MessagingException, IOException(Code) | | Attach a footer a MimePart
Parameters: part - the MimePart to which the footer is to be attached whether a footer was successfully attached throws: MessagingException - throws: IOException - |
getFooterHTML | abstract protected String getFooterHTML()(Code) | | This is exposed as a method for easy subclassing to provide alternate ways
to get the footer text. By default, this will take the footer text,
converting the linefeeds to <br> tags.
the HTML version of the footer text |
getFooterText | abstract protected String getFooterText()(Code) | | This is exposed as a method for easy subclassing to provide alternate ways
to get the footer text.
the footer text |
service | public void service(Mail mail) throws MessagingException(Code) | | Takes the message and attaches a footer message to it. Right now, it only
supports simple messages. Needs to have additions to make it support
messages with alternate content types or with attachments.
Parameters: mail - the mail being processed throws: MessagingException - if an error arises during message processing |
|
|