|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.ObjectMimeMessageHelper
com.ozacc.springframework.mail.javamail.IntlMimeMessageHelper
国際化、とまでは言わないけど、日本語対応したMimeMessageHelperクラス。
フィールドの概要 | |
protected static java.lang.String |
JIS_ENCODING
|
protected boolean |
multipart
|
コンストラクタの概要 | |
IntlMimeMessageHelper(MimeMessage mimeMessage)
|
|
IntlMimeMessageHelper(MimeMessage mimeMessage,
boolean multipart)
|
|
IntlMimeMessageHelper(MimeMessage mimeMessage,
boolean multipart,
java.lang.String encoding)
|
|
IntlMimeMessageHelper(MimeMessage mimeMessage,
java.lang.String encoding)
|
メソッドの概要 | |
void |
addAttachment(java.lang.String attachmentFilename,
DataSource dataSource)
日本語のファイル名に対応しています。 |
protected void |
setDate()
送信日時を示すDateヘッダーを設定します。 |
void |
setSubject(java.lang.String subject)
メールの件名をセットします。 |
void |
setText(java.lang.String text,
boolean html)
Sets the given text directly as content in non-multipart mode respectively as default body part in multipart mode. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected static final java.lang.String JIS_ENCODING
protected boolean multipart
コンストラクタの詳細 |
public IntlMimeMessageHelper(MimeMessage mimeMessage) throws MessagingException
mimeMessage
-
MessagingException
public IntlMimeMessageHelper(MimeMessage mimeMessage, java.lang.String encoding) throws MessagingException
mimeMessage
-
MessagingException
public IntlMimeMessageHelper(MimeMessage mimeMessage, boolean multipart) throws MessagingException
mimeMessage
- multipart
-
MessagingException
public IntlMimeMessageHelper(MimeMessage mimeMessage, boolean multipart, java.lang.String encoding) throws MessagingException
mimeMessage
- multipart
-
MessagingException
メソッドの詳細 |
protected void setDate() throws MessagingException
MessagingException
public void setSubject(java.lang.String subject) throws MessagingException
エンコーディングがJIS(ISO-2022-JP)の場合は、エンコーディングスキームがBase64になるようにしています。 これは携帯や古いMUAだと、Quoted-Printableエンコーディングに対応していない場合があるからです。
MessagingException
org.springframework.mail.javamail.MimeMessageHelper#setSubject(java.lang.String)
public void setText(java.lang.String text, boolean html) throws MessagingException
text
- text to sethtml
- whether to apply content type "text/html" for an
HTML mail, using default content type ("text/plain") else
MessagingException
public void addAttachment(java.lang.String attachmentFilename, DataSource dataSource) throws MessagingException
このファイル名のエンコーディング方法はRFC違反かも知れませんが、Outlookでも正しく表示される方法を採っています。
MessagingException
org.springframework.mail.javamail.MimeMessageHelper#addAttachment(java.lang.String, javax.activation.DataSource)
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |