org.apache.james.postage.mail
Class MailAnalyzeStrategy

java.lang.Object
  extended by org.apache.james.postage.mail.MailAnalyzeStrategy
Direct Known Subclasses:
POP3MailAnalyzeStrategy, SMTPMailAnalyzeStrategy

public abstract class MailAnalyzeStrategy
extends java.lang.Object

handles the process of retrieving, analyzing, matching and finally (optionally) dismissing one received message.


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
MailAnalyzeStrategy(java.lang.String receivingQueueName, PostageRunnerResult results)
           
 
Method Summary
protected  void dismissMessage()
          optional override to delete the message.
 void handle()
           
protected  javax.mail.internet.MimeMessage loadMessage()
          mandatory override to make the message available
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

MailAnalyzeStrategy

public MailAnalyzeStrategy(java.lang.String receivingQueueName,
                           PostageRunnerResult results)
Method Detail

handle

public void handle()
            throws java.lang.Exception
Throws:
java.lang.Exception

loadMessage

protected javax.mail.internet.MimeMessage loadMessage()
                                               throws java.lang.Exception
mandatory override to make the message available

Throws:
java.lang.Exception

dismissMessage

protected void dismissMessage()
                       throws java.lang.Exception
optional override to delete the message.

Throws:
java.lang.Exception


Copyright © 2006-2007 The Apache Software Foundation. All Rights Reserved.