org.apache.james.transport.remotedeliverytester
Interface TransportRule
- All Known Implementing Classes:
- TransportRule.Default, TransportRule.NameExpression
public interface TransportRule
The TransportRule is a rule for the tester.
It define the behaviour of a given server.
Nested Class Summary |
static class |
TransportRule.Default
|
static class |
TransportRule.NameExpression
Server rule string format:
id-rule.[*-userrule].[match*-userrule].string
- id-rule are for "connect"-time exceptions
- *-userrule are for "send"-time exceptions involving every mail (not depending on the recipients address)
- match*-userrule are for "send"-time exceptions involving specific recipients (starting with match - ** to match every address)
Available rules:
- me[v]: MessagingException
- sfe[v]: SendFailedException
- smtpafeXXX[v]: SMTPAddressFailedException with XXX returnCode
- smtpaseXXX[v]: SMTPAddressSuccededException with XXX returnCode
- smtpsfeXXX[v]: SMTPSendFailedException with XXX returnCode
- null: NullPointerException
- io: IOException (nested in a MessagingException)
- rpt: repeat the previous rule pattern
- (*) if a "mail" rule (one involving addresses) ends with "v" resulting in a "valid" address (the failure is about some other error: valid unsent) |
onConnect
void onConnect(Tester.TestStatus status,
java.lang.String server)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
onSendMessage
void onSendMessage(Tester.TestStatus status,
java.lang.String server,
ProcMail.Listing pmails)
throws javax.mail.MessagingException,
javax.mail.SendFailedException
- Throws:
javax.mail.MessagingException
javax.mail.SendFailedException
onClose
void onClose(Tester.TestStatus status,
java.lang.String server)
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
onSupportsExtension
boolean onSupportsExtension(Tester.TestStatus status,
java.lang.String server,
java.lang.String ext,
boolean value)
Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.