org.apache.james.postage.mail
Class MailAnalyzeStrategy
java.lang.Object
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
|
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 |
log
protected static org.apache.commons.logging.Log log
MailAnalyzeStrategy
public MailAnalyzeStrategy(java.lang.String receivingQueueName,
PostageRunnerResult results)
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.