|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.ozacc.mail.impl.AbstractXMLMailBuilder
com.ozacc.mail.impl.XMLMailBuilderImpl
メールデータのXMLファイルからMailインスタンスを生成するクラス。
ソースXMLを読み込む際に、DTDバリデーションが実行されますので妥当なXMLデータ(Valid XML Document)でなければいけません。 メールデータXMLのDTDは、http://www.ozacc.com/library/dtd/ozacc-mail.dtdを参照。
フィールドの概要 | |
protected Map |
documentBuilderCache
|
コンストラクタの概要 | |
XMLMailBuilderImpl()
コンストラクタ。 |
メソッドの概要 | |
protected Mail |
buildMail(Document doc)
DOM DocumentからMailインスタンスを生成します。 |
Mail |
buildMail(File file)
指定されたファイルを読み込んでMailインスタンスを生成します。 |
Mail |
buildMail(String classPath)
指定されたクラスパス上のファイルを読み込んでMailインスタンスを生成します。 |
protected DocumentBuilder |
createDocumentBuilder()
DocumentBuilderインスタンスを生成します。 |
protected DocumentBuilder |
createDocumentBuilder(boolean ignoreComment)
DocumentBuilderインスタンスを生成します。 |
protected Document |
getDocumentFromClassPath(String classPath)
指定されたクラスパスのXMLファイルを読み込み、DOM Documentを生成します。 |
protected Document |
getDocumentFromClassPath(String classPath,
boolean ignoreComment)
指定されたクラスパスのXMLファイルを読み込み、DOM Documentを生成します。 |
protected Document |
getDocumentFromFile(File file)
指定されたXMLファイルを読み込み、DOM Documentを生成します。 |
protected Document |
getDocumentFromFile(File file,
boolean ignoreComment)
指定されたXMLファイルを読み込み、DOM Documentを生成します。 |
protected void |
setFrom(Element root,
Mail mail)
|
protected void |
setHtml(Element root,
Mail mail)
HTML本文をセット。 |
protected void |
setRecipients(Element root,
Mail mail)
|
protected void |
setReplyTo(Element root,
Mail mail)
|
protected void |
setReturnPath(Element root,
Mail mail)
|
protected void |
setSubject(Element root,
Mail mail)
|
protected void |
setText(Element root,
Mail mail)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected Map documentBuilderCache
コンストラクタの詳細 |
public XMLMailBuilderImpl()
メソッドの詳細 |
public Mail buildMail(String classPath) throws MailBuildException
MailBuilder
の記述:
MailBuilder
内の buildMail
classPath
- メール内容を記述したファイルのパス
MailBuildException
- Mailインスタンスの生成に失敗した場合MailBuilder.buildMail(java.lang.String)
public Mail buildMail(File file) throws MailBuildException
MailBuilder
の記述:
MailBuilder
内の buildMail
file
- メール内容を記述したファイル
MailBuildException
- Mailインスタンスの生成に失敗した場合MailBuilder.buildMail(java.io.File)
protected Mail buildMail(Document doc)
doc
- メールデータのDOM Document
protected Document getDocumentFromFile(File file, boolean ignoreComment) throws SAXException, IOException
file
- XMLファイル
IOException
SAXException
protected Document getDocumentFromFile(File file) throws SAXException, IOException
file
- XMLファイル
IOException
SAXException
protected DocumentBuilder createDocumentBuilder(boolean ignoreComment) throws FactoryConfigurationError
ignoreComment
-
FactoryConfigurationError
protected DocumentBuilder createDocumentBuilder() throws FactoryConfigurationError
FactoryConfigurationError
protected Document getDocumentFromClassPath(String classPath, boolean ignoreComment) throws SAXException, IOException
ignoreComment
- classPath
-
IOException
SAXException
protected Document getDocumentFromClassPath(String classPath) throws SAXException, IOException
classPath
-
IOException
SAXException
protected void setReplyTo(Element root, Mail mail)
root
- mail
- protected void setText(Element root, Mail mail)
root
- mail
- protected void setHtml(Element root, Mail mail)
root
- mail
- protected void setSubject(Element root, Mail mail)
root
- mail
- protected void setRecipients(Element root, Mail mail)
root
- mail
- protected void setReturnPath(Element root, Mail mail)
root
- mail
- protected void setFrom(Element root, Mail mail)
root
- mail
-
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |