org.apache.james.transport.remotedeliverytester
Class ProcMail
java.lang.Object
org.apache.james.transport.remotedeliverytester.ProcMail
public class ProcMail
- extends java.lang.Object
This class records the status of a delivery
This is used by the remote delivery tester to assert events
for a given delivery
Constructor Summary |
ProcMail(Tester owner,
org.apache.mailet.Mail mail,
org.apache.mailet.MailAddress recipient)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATE_IDLE
public static final int STATE_IDLE
- See Also:
- Constant Field Values
STATE_SENT
public static final int STATE_SENT
- See Also:
- Constant Field Values
STATE_SENT_ERROR
public static final int STATE_SENT_ERROR
- See Also:
- Constant Field Values
STATE_BOUNCED
public static final int STATE_BOUNCED
- See Also:
- Constant Field Values
ERRORFLAG_WRONGSERVER
public int ERRORFLAG_WRONGSERVER
ERRORFLAG_WRONGBOUNCE
public int ERRORFLAG_WRONGBOUNCE
errorFlags
public int errorFlags
ProcMail
public ProcMail(Tester owner,
org.apache.mailet.Mail mail,
org.apache.mailet.MailAddress recipient)
getKey
public static java.lang.String getKey(javax.mail.Message message,
javax.mail.Address address)
getKey
public static java.lang.String getKey(org.apache.mailet.Mail mail,
org.apache.mailet.MailAddress recipient)
sent
public void sent(java.lang.String serverName,
java.lang.Exception e)
bounced
public void bounced(org.apache.mailet.Mail mail)
getSendCount
public int getSendCount()
getBounceCount
public int getBounceCount()
getLength
public int getLength()
- Duration (from creation to last event) in seconds.
- Returns:
getErrorFlags
public int getErrorFlags()
setErrorFlags
public void setErrorFlags(int errorFlags)
getBounceMails
public java.util.List getBounceMails()
setBounceMails
public void setBounceMails(java.util.List bounceMails)
getBounceMail
public org.apache.mailet.Mail getBounceMail(int idx)
getBounceStatus
public java.util.List getBounceStatus()
setBounceStatus
public void setBounceStatus(java.util.List bounceStatus)
getBounceStatus
public ProcMail.MailStatus getBounceStatus(int idx)
getFinalMailStatus
public ProcMail.MailStatus getFinalMailStatus()
setFinalMailStatus
public void setFinalMailStatus(ProcMail.MailStatus finalMailStatus)
getKey
public java.lang.String getKey()
setKey
public void setKey(java.lang.String key)
getLastEventDate
public java.util.Date getLastEventDate()
setLastEventDate
public void setLastEventDate(java.util.Date lastEventDate)
getMailMessage
public javax.mail.internet.MimeMessage getMailMessage()
setMailMessage
public void setMailMessage(javax.mail.internet.MimeMessage mailMessage)
getMailName
public java.lang.String getMailName()
setMailName
public void setMailName(java.lang.String mailName)
getMailSender
public org.apache.mailet.MailAddress getMailSender()
setMailSender
public void setMailSender(org.apache.mailet.MailAddress mailSender)
getOwner
public Tester getOwner()
setOwner
public void setOwner(Tester owner)
getRecipient
public org.apache.mailet.MailAddress getRecipient()
setRecipient
public void setRecipient(org.apache.mailet.MailAddress recipient)
getSendExceptions
public java.util.List getSendExceptions()
setSendExceptions
public void setSendExceptions(java.util.List sendExceptions)
getSendException
public java.lang.Exception getSendException(int idx)
getSendServers
public java.util.List getSendServers()
setSendServers
public void setSendServers(java.util.List sendServers)
getSendServer
public java.lang.String getSendServer(int idx)
getSendDates
public java.util.List getSendDates()
setSendDates
public void setSendDates(java.util.List sendDate)
getSendDate
public java.util.Date getSendDate(int idx)
getStartMailStatus
public ProcMail.MailStatus getStartMailStatus()
setStartMailStatus
public void setStartMailStatus(ProcMail.MailStatus startMailStatus)
getState
public int getState()
setState
public void setState(int state)
getTransportRule
public TransportRule getTransportRule()
setTransportRule
public void setTransportRule(TransportRule transportRule)
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.