|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.BodyPart
javax.mail.internet.MimeBodyPart
com.novell.nds.dirxml.util.mail.MailMessagePart
public class MailMessagePart
Class to construct a MimeBodyPart based on an XML description. Handles <message> and <attachment> elements that are children of the <mail> element.
Nested Class Summary | |
---|---|
static class |
MailMessagePart.SpecifiedMimeTypeMap
Extension of FileTypeMap to allow a specify mime-type specified in the XML description to override whatever FileTypeMap would return |
Field Summary | |
---|---|
protected String |
encoding
|
protected String |
filename
|
protected String |
language
|
protected String |
m_sMailTemplateDN
|
protected String |
m_sTemplateAttr
|
protected String |
mimeType
|
protected Document |
replacementData
|
protected Vector |
resourceList
|
protected String |
stylesheetName
|
protected String |
templateData
|
Fields inherited from class javax.mail.internet.MimeBodyPart |
---|
content, contentStream, dh, headers |
Fields inherited from interface javax.mail.Part |
---|
ATTACHMENT, INLINE |
Constructor Summary | |
---|---|
MailMessagePart(Element message,
StylesheetSource stylesheets,
MailMessage parent)
Construct the message part based on an XML description. |
Method Summary | |
---|---|
static Node |
cloneSubtree(Document targetDoc,
Node sourceRoot)
Clone a subtree, possibly into another document. |
protected void |
construct(StylesheetSource stylesheets)
Construct the message part after parsing the XML description. |
protected void |
parse(Element message,
StylesheetSource stylesheets)
Parse the XML describing the message part. |
void |
setFileName(String filename)
Set the filename associated with this message part. |
Methods inherited from class javax.mail.internet.MimeBodyPart |
---|
addHeader, addHeaderLine, attachFile, attachFile, getAllHeaderLines, getAllHeaders, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getSize, isMimeType, removeHeader, saveFile, saveFile, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setHeader, setText, setText, setText, updateHeaders, writeTo |
Methods inherited from class javax.mail.BodyPart |
---|
getParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String mimeType
protected String language
protected String stylesheetName
protected String templateData
protected Document replacementData
protected Vector resourceList
protected String filename
protected String m_sMailTemplateDN
protected String m_sTemplateAttr
protected String encoding
Constructor Detail |
---|
public MailMessagePart(Element message, StylesheetSource stylesheets, MailMessage parent) throws HandlerException, FileNotFoundException
message
- <message> or <attachment> elementstylesheets
- A StylesheetSource object from which to load stylesheets, xml
documents, and other files referenced in the describing XML.
is being sent.parent
- MailMessage of which this MailMessagePart of a part of.
HandlerException
FileNotFoundException
Method Detail |
---|
protected void parse(Element message, StylesheetSource stylesheets) throws HandlerException, FileNotFoundException
message
- <message> or <attachment> elementstylesheets
- Source for any files, XML documents, or XSLT stylesheets references in the
mail XML description.
supplied to stylesheets used in construction of message parts.
HandlerException
FileNotFoundException
protected void construct(StylesheetSource stylesheets) throws HandlerException
stylesheets
- Source for any files, XML documents, or XSLT stylesheets references in the
mail XML description.
HandlerException
public void setFileName(String filename) throws javax.mail.MessagingException
setFileName
in interface javax.mail.Part
setFileName
in class javax.mail.internet.MimeBodyPart
filename
- unnormalized filename
javax.mail.MessagingException
public static Node cloneSubtree(Document targetDoc, Node sourceRoot)
targetDoc
- target document for the cloned documentsourceRoot
- root of subtree to clone
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |