com.ozacc.springframework.mail
クラス MultipartMailMessage

java.lang.Object
  拡張org.springframework.mail.SimpleMailMessage
      拡張com.ozacc.springframework.mail.PlainMailMessage
          拡張com.ozacc.springframework.mail.MultipartMailMessage

public class MultipartMailMessage
extends PlainMailMessage

ファイル添付可能なメール。

バージョン:
$Id: MultipartMailMessage.java,v 1.1 2004/08/02 20:39:06 otsuka Exp $
作成者:
Tomohiro Otsuka

フィールドの概要
 
クラス com.ozacc.springframework.mail.PlainMailMessage から継承したフィールド
fromName, toName
 
コンストラクタの概要
MultipartMailMessage()
          コンストラクタ。
 
メソッドの概要
 void addAttachment(File file)
          添付ファイルの File オブジェクトをセットします。
 void addAttachment(String filepath)
          添付ファイルのファイルパスをセットします。
 File[] getAttachments()
          添付ファイルの List を返します。
 
クラス com.ozacc.springframework.mail.PlainMailMessage から継承したメソッド
addTo, getFromName, getToName, setFrom, setFromName, setTo, toString
 
クラス org.springframework.mail.SimpleMailMessage から継承したメソッド
getBcc, getCc, getFrom, getReplyTo, getSentDate, getSubject, getText, getTo, setBcc, setBcc, setCc, setCc, setFrom, setReplyTo, setSentDate, setSubject, setText, setTo, setTo
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

MultipartMailMessage

public MultipartMailMessage()
コンストラクタ。

メソッドの詳細

addAttachment

public void addAttachment(String filepath)
添付ファイルのファイルパスをセットします。

パラメータ:
filepath - 添付ファイルのファイルパス

addAttachment

public void addAttachment(File file)
添付ファイルの File オブジェクトをセットします。

パラメータ:
file - 添付ファイルの File オブジェクト

getAttachments

public File[] getAttachments()
添付ファイルの List を返します。

戻り値:
添付ファイルの配列


Copyright © 2004 OZACC. All Rights Reserved.