| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mailet.base.GenericMailet
org.apache.james.transport.mailets.RecoverAttachment
public class RecoverAttachment
This mailet takes an attachment stored in an attribute and attach it back to the message
 This may be used to place back attachment stripped by StripAttachment and
 stored in the attribute
 org.apache.james.transport.mailets.StripAttachment.saved
 
   <mailet match="All" class="RecoverAttachment" >
     <attribute>my.attribute.name</attribute>
   </mailet >
 
 
 
| Field Summary | |
|---|---|
| static java.lang.String | ATTRIBUTE_PARAMETER_NAME | 
| Constructor Summary | |
|---|---|
| RecoverAttachment() | |
| Method Summary | |
|---|---|
|  java.lang.String | getMailetInfo()returns a String describing this mailet. | 
|  void | init()Checks if the mandatory parameters are present | 
|  void | service(Mail mail)Service the mail: check for the attribute and attach the attachment to the mail. | 
| Methods inherited from class org.apache.mailet.base.GenericMailet | 
|---|
| arrayToString, checkInitParameters, destroy, getInitParameter, getInitParameter, 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 | 
| Field Detail | 
|---|
public static final java.lang.String ATTRIBUTE_PARAMETER_NAME
| Constructor Detail | 
|---|
public RecoverAttachment()
| Method Detail | 
|---|
public void init()
          throws MailetException
init in class GenericMailetMailetException
public void service(Mail mail)
             throws MailetException
service in interface Mailetservice in class GenericMailetmail - The mail to service
MailetException - Thrown when an error situation is encountered.public java.lang.String getMailetInfo()
getMailetInfo in interface MailetgetMailetInfo in class GenericMailet| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||