org.apache.james.transport.remotedeliverytester
Class TransportRule.NameExpression

java.lang.Object
  extended by org.apache.james.transport.remotedeliverytester.TransportRule.Default
      extended by org.apache.james.transport.remotedeliverytester.TransportRule.NameExpression
All Implemented Interfaces:
TransportRule
Enclosing interface:
TransportRule

public static class TransportRule.NameExpression
extends TransportRule.Default

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)


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.james.transport.remotedeliverytester.TransportRule
TransportRule.Default, TransportRule.NameExpression
 
Constructor Summary
TransportRule.NameExpression(boolean sendValid)
           
 
Method Summary
 void onConnect(Tester.TestStatus status, java.lang.String server)
           
 void onSendMessage(Tester.TestStatus status, java.lang.String server, ProcMail.Listing pmails)
           
 void throwME(javax.mail.MessagingException ex)
           
 
Methods inherited from class org.apache.james.transport.remotedeliverytester.TransportRule.Default
onClose, onSupportsExtension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportRule.NameExpression

public TransportRule.NameExpression(boolean sendValid)
Method Detail

onConnect

public void onConnect(Tester.TestStatus status,
                      java.lang.String server)
               throws javax.mail.MessagingException
Specified by:
onConnect in interface TransportRule
Overrides:
onConnect in class TransportRule.Default
Throws:
javax.mail.MessagingException

onSendMessage

public void onSendMessage(Tester.TestStatus status,
                          java.lang.String server,
                          ProcMail.Listing pmails)
                   throws javax.mail.MessagingException,
                          javax.mail.SendFailedException
Specified by:
onSendMessage in interface TransportRule
Overrides:
onSendMessage in class TransportRule.Default
Throws:
javax.mail.MessagingException
javax.mail.SendFailedException

throwME

public void throwME(javax.mail.MessagingException ex)
             throws javax.mail.MessagingException
Throws:
javax.mail.MessagingException


Copyright ? 2002-2009 The Apache Software Foundation. All Rights Reserved.