org.apache.james.postage.mail
Class DefaultMailFactory

java.lang.Object
  extended by org.apache.james.postage.mail.AbstractMailFactory
      extended by org.apache.james.postage.mail.DefaultMailFactory
All Implemented Interfaces:
MailFactory

public class DefaultMailFactory
extends AbstractMailFactory
implements MailFactory

mail factory used, when no other is specified


Constructor Summary
DefaultMailFactory()
           
 
Method Summary
protected  java.lang.Class getValidatorClass()
          the class representing the validator
protected  void populateMessage(javax.mail.internet.MimeMessage message, MailSender mailSender, MailProcessingRecord mailProcessingRecord)
          here, the test case specific data must be added to the message.
 
Methods inherited from class org.apache.james.postage.mail.AbstractMailFactory
createMail, generateRandomPartSize, getRandomByte, getRandomChar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.james.postage.mail.MailFactory
createMail
 

Constructor Detail

DefaultMailFactory

public DefaultMailFactory()
Method Detail

populateMessage

protected void populateMessage(javax.mail.internet.MimeMessage message,
                               MailSender mailSender,
                               MailProcessingRecord mailProcessingRecord)
                        throws javax.mail.MessagingException
Description copied from class: AbstractMailFactory
here, the test case specific data must be added to the message.

Specified by:
populateMessage in class AbstractMailFactory
Throws:
javax.mail.MessagingException

getValidatorClass

protected java.lang.Class getValidatorClass()
Description copied from class: AbstractMailFactory
the class representing the validator

Specified by:
getValidatorClass in class AbstractMailFactory
Returns:
validator class


Copyright © 2006-2007 The Apache Software Foundation. All Rights Reserved.