public class ProcessorUtil extends Object
Constructor and Description |
---|
ProcessorUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
handleException(javax.mail.MessagingException me,
org.apache.mailet.Mail mail,
String offendersName,
String nextState,
org.slf4j.Logger logger)
This is a helper method that updates the state of the mail object to
Mail.ERROR as well as recording the exception to the log
|
static void |
verifyMailAddresses(Collection col)
Checks that all objects in this class are of the form MailAddress.
|
public static void handleException(javax.mail.MessagingException me, org.apache.mailet.Mail mail, String offendersName, String nextState, org.slf4j.Logger logger) throws javax.mail.MessagingException
me
- the exception to be handledmail
- the mail being processed when the exception was generatedoffendersName
- the matcher or mailet than generated the exceptionnextState
- the next state to setjavax.mail.MessagingException
- thrown always, rethrowing the passed in exceptionpublic static void verifyMailAddresses(Collection col) throws javax.mail.MessagingException
javax.mail.MessagingException
- when the Collection
contains objects that are
not MailAddress
objectsCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.