|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.postage.mail.AbstractMailFactory
public abstract class AbstractMailFactory
prototype of a mail factory, only missing the use case specific data.
it prepares the message with all Postage specific headers.
as a template implementation
Constructor Summary | |
---|---|
AbstractMailFactory()
|
Method Summary | |
---|---|
javax.mail.Message |
createMail(javax.mail.Session mailSession,
MailSender mailSender,
MailProcessingRecord mailProcessingRecord)
generates a mail containing data common to all test mails: postage headers, |
protected int |
generateRandomPartSize(int sizeMin,
int sizeMax)
|
static byte |
getRandomByte()
|
static char |
getRandomChar()
|
protected abstract java.lang.Class |
getValidatorClass()
the class representing the validator |
protected abstract 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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMailFactory()
Method Detail |
---|
public static char getRandomChar()
public static byte getRandomByte()
public javax.mail.Message createMail(javax.mail.Session mailSession, MailSender mailSender, MailProcessingRecord mailProcessingRecord)
protected abstract void populateMessage(javax.mail.internet.MimeMessage message, MailSender mailSender, MailProcessingRecord mailProcessingRecord) throws javax.mail.MessagingException
message
- mailSender
- mailProcessingRecord
-
javax.mail.MessagingException
protected abstract java.lang.Class getValidatorClass()
protected int generateRandomPartSize(int sizeMin, int sizeMax)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |