org.apache.james.transport.mailets
Class AddHabeasWarrantMark
java.lang.Object
|
+--org.apache.mailet.GenericMailet
|
+--org.apache.james.transport.mailets.AddHabeasWarrantMark
- All Implemented Interfaces:
- Mailet, MailetConfig
- public class AddHabeasWarrantMark
- extends GenericMailet
Method Summary |
String |
getMailetInfo()
Returns information about the mailet, such as author, version, and
copyright. |
void |
service(Mail mail)
Called by the mailet container to allow the mailet to process to
a message message.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddHabeasWarrantMark
public AddHabeasWarrantMark()
service
public void service(Mail mail)
throws MessagingException
- Called by the mailet container to allow the mailet to process to
a message message.
This method adds the Habeas Warrant Mark headers to the message,
saves the changes, and then allows the message to fall through
in the pipeline.
- Specified by:
service
in interface Mailet
- Specified by:
service
in class GenericMailet
- Parameters:
mail
- - the Mail object that contains the message and routing information
- Throws:
MessagingException
- - if an message or address parsing exception occurs or
an exception that interferes with the mailet's normal operation
getMailetInfo
public String getMailetInfo()
- Description copied from class:
GenericMailet
- Returns information about the mailet, such as author, version, and
copyright. By default, this method returns an empty string. Override
this method to have it return a meaningful value.
- Specified by:
getMailetInfo
in interface Mailet
- Overrides:
getMailetInfo
in class GenericMailet
- Returns:
- String information about this mailet, by default an empty string
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."