public class MailMessage
extends javax.mail.internet.MimeMessage
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector |
attachmentList |
protected javax.mail.Address |
from |
protected java.util.Vector |
messagePartList |
protected java.util.Vector |
recipientList |
protected java.util.Vector |
replyTo |
| Constructor and Description |
|---|
MailMessage(java.lang.String defaultFrom,
javax.mail.Session session,
org.w3c.dom.Element mail,
StylesheetSource stylesheets)
Construct a mail message (MimeMessage) based on an XML description.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWarning(java.lang.String msg)
Add a warning string for a non-fatal condition encountered during parsing
or construction of the Message and its parts.
|
protected void |
construct()
Construct the Message after parsing the XML description.
|
java.lang.String |
getWarningMessages()
Get any warning messages generated during construction of the mail message.
|
XSLTHandler |
getXSLTHandler()
Get implementation of nxsl ErrorHandler and MessageHandler interfaces
for use in processing a stylesheet.
|
protected void |
parse(org.w3c.dom.Element mail,
StylesheetSource stylesheets)
Parse the <mail> element.
|
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeTo, writeToprotected java.util.Vector recipientList
protected java.util.Vector messagePartList
protected java.util.Vector attachmentList
protected java.util.Vector replyTo
protected javax.mail.Address from
public MailMessage(java.lang.String defaultFrom,
javax.mail.Session session,
org.w3c.dom.Element mail,
StylesheetSource stylesheets)
throws HandlerException
defaultFrom - Will be used unless from is explicitly set. Comes from the driver parameter.session - The Session object for this message.mail - The <mail> element that contains the description of the
mail message to construct.stylesheets - A StylesheetSource object from which to load stylesheets, xml
documents, and other files referenced in the describing XML.
is being sent.HandlerException - if the XML description is invalidpublic XSLTHandler getXSLTHandler()
public java.lang.String getWarningMessages()
protected void parse(org.w3c.dom.Element mail,
StylesheetSource stylesheets)
throws HandlerException,
java.io.FileNotFoundException
mail - The element.stylesheets - Source for any files, XML documents, or XSLT stylesheets references in the
mail XML description.
supplied to stylesheets used in construction of message parts.HandlerExceptionjava.io.FileNotFoundExceptionprotected void construct()
throws HandlerException
HandlerExceptionpublic void addWarning(java.lang.String msg)
msg - The text of the message to add.