|
|||||||||||
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(javax.mail.internet.MimePart part)
|
protected void |
addToText(javax.mail.internet.MimePart part)
|
protected void |
attachFooter(javax.mail.internet.MimePart part)
|
java.lang.String |
getFooterHTML()
This is exposed as a method for easy subclassing to provide alternate ways to get the footer text. |
java.lang.String |
getFooterText()
This is exposed as a method for easy subclassing to provide alternate ways to get the footer text. |
java.lang.String |
getMailetInfo()
Returns information about the mailet, such as author, version, and copyright. |
void |
init()
A convenience method which can be overridden so that there's no need to call super.init(config). |
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 javax.mail.MessagingException
GenericMailet
init
in class GenericMailet
javax.mail.MessagingException
- if an exception occurs that interrupts the mailet's normal operationpublic void service(Mail mail) throws javax.mail.MessagingException
service
in interface Mailet
service
in class GenericMailet
mail
- - the Mail object that contains the MimeMessage and
routing information
javax.mail.MessagingException
- - if an exception occurs that interferes with the mailet's normal operation
occurredpublic java.lang.String getFooterText()
public java.lang.String getFooterHTML()
public java.lang.String getMailetInfo()
GenericMailet
getMailetInfo
in interface Mailet
getMailetInfo
in class GenericMailet
protected void addToText(javax.mail.internet.MimePart part) throws javax.mail.MessagingException, java.io.IOException
javax.mail.MessagingException
java.io.IOException
protected void addToHTML(javax.mail.internet.MimePart part) throws javax.mail.MessagingException, java.io.IOException
javax.mail.MessagingException
java.io.IOException
protected void attachFooter(javax.mail.internet.MimePart part) throws javax.mail.MessagingException, java.io.IOException
javax.mail.MessagingException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |