|
|||||||||||
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.AddFooter
This mailet will attach text to the end of the message (like a footer). Right now it only supports simple messages without multiple parts.
Constructor Summary | |
AddFooter()
|
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 void |
attachFooter(MimePart part)
Attaches a MimePart as an appropriate footer |
String |
getFooterHTML()
This is exposed as a method for easy subclassing to provide alternate ways to get the footer text. |
String |
getFooterText()
This is exposed as a method for easy subclassing to provide alternate ways to get the footer text. |
String |
getMailetInfo()
Return a string describing this mailet. |
void |
init()
Initialize the mailet |
void |
service(Mail mail)
Takes the message and attaches a footer message to it. |
Methods inherited from class org.apache.mailet.GenericMailet |
destroy, 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 |
Constructor Detail |
public AddFooter()
Method Detail |
public void init() throws MessagingException
init
in class GenericMailet
MessagingException
- if an exception occurs that interrupts the mailet's normal operationpublic 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 processingpublic String getFooterText()
public String getFooterHTML()
public String getMailetInfo()
getMailetInfo
in interface Mailet
getMailetInfo
in class GenericMailet
protected 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 void attachFooter(MimePart part) throws MessagingException, IOException
part
- the MimePart to attach
MessagingException
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |