org.apache.james.transport.mailets
Class AddHabeasWarrantMark

java.lang.Object
  extended by org.apache.mailet.GenericMailet
      extended by org.apache.james.transport.mailets.AddHabeasWarrantMark
All Implemented Interfaces:
Mailet, MailetConfig

public class AddHabeasWarrantMark
extends GenericMailet


Constructor Summary
AddHabeasWarrantMark()
           
 
Method Summary
 java.lang.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 org.apache.mailet.GenericMailet
destroy, getInitParameter, getInitParameter, getInitParameterNames, getMailetConfig, getMailetContext, 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

AddHabeasWarrantMark

public AddHabeasWarrantMark()
Method Detail

service

public void service(Mail mail)
             throws javax.mail.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:
javax.mail.MessagingException - - if an message or address parsing exception occurs or an exception that interferes with the mailet's normal operation

getMailetInfo

public java.lang.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:
information about this mailet, by default an empty string


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.