jp.go.aist.dmrc.platform.beans.mail
クラス PFMailInformation

java.lang.Object
  上位を拡張 jp.go.aist.dmrc.platform.beans.mail.PFMailInformation

public class PFMailInformation
extends java.lang.Object

メール情報クラス。
データ生成クラスに内包されるデータ。 JavaMailのメッセージクラスの情報を転記する。


コンストラクタの概要
PFMailInformation()
          コンストラクタ。
 
メソッドの概要
 PFObjectList getAllAttachmentContentTypeParameterNames()
          Content-Typeパラメータ名の全取得。
 PFObjectList getAllAttachmentContentTypeParameters(java.lang.String parameterName)
          Content-Typeパラメータの全取得。
 PFObjectList getAllAttachmentContentTypes()
          Content-Typeの全取得。
 PFObjectList getAllAttachmentFileNames()
          ファイル名の全取得。
 java.lang.String getAttachmentContentType(int attachementFileNumber)
          Content-Typeの取得
 java.lang.String getAttachmentContentTypeParameter(int attachementFileNumber, java.lang.String parameterName)
          Content-Typeパラメータの取得
 PFObjectList getAttachmentContentTypeParameterNames(int attachementFileNumber)
          Content-Typeパラメータ名の取得
 java.lang.String getAttachmentFileName(int attachementFileNumber)
          ファイル名の取得。
 java.lang.String getBodyHtml()
          HTMLメール本文の取得
MIMEマルチパートメールの場合、Content-Typeがtext/htmlである最初のパートをメール本文とする。
 java.lang.String getBodyRich()
          RichTextメール本文の取得
MIMEマルチパートメールの場合、Content-Typeがtext/richである最初のパートをメール本文とする。
 java.lang.String getBodyText()
          メール本文の取得
MIMEマルチパートメールの場合、Content-Typeがtext/plainである最初のパートをメール本文とする。
 PFObjectList getCcAddress()
          Ccの取得。
 java.lang.String getFromAddress()
          Fromの取得。
 PFObjectList getHeaderNames()
          ヘッダ名一覧の取得。
 PFObjectList getHeaderValue(java.lang.String headerName)
          ヘッダ値取得
 int getMailSize()
          メールサイズの取得。
 java.lang.String getMailUIDL()
          メールUIDLの取得。
 java.lang.String getMessageId()
          メッセージIDを取得。
 java.lang.String getMessageSource()
          メッセージソースの取得。
 int getNumberOfAttachmentFiles()
          添付ファイル数の取得。
 java.lang.String getReplyToAddress()
          Reply-Toの取得。
 java.util.Date getSentDate()
          送信日時の取得。
 java.lang.String getSubject()
          Subjectの取得。
 PFObjectList getToAddress()
          Toの取得。
 void saveAllAttachmentFiles(java.lang.String folderName)
          添付ファイルの全保存。
 void saveAttachmentFile(int attachementFileNumber, java.lang.String fileName)
          添付ファイルを保存する。
 void saveMessageSource(java.lang.String fileName)
          メッセージソースを保存する。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PFMailInformation

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

メソッドの詳細

getFromAddress

public java.lang.String getFromAddress()
Fromの取得。

戻り値:
メールアドレス

getToAddress

public PFObjectList getToAddress()
Toの取得。

戻り値:
メールアドレスのリスト

getSubject

public java.lang.String getSubject()
Subjectの取得。

戻り値:
件名

getCcAddress

public PFObjectList getCcAddress()
Ccの取得。

戻り値:
メールアドレスのリスト

getReplyToAddress

public java.lang.String getReplyToAddress()
Reply-Toの取得。

戻り値:
メールアドレス

getSentDate

public java.util.Date getSentDate()
送信日時の取得。

戻り値:
日時

getMessageId

public java.lang.String getMessageId()
メッセージIDを取得。

戻り値:
メッセージID

getHeaderNames

public PFObjectList getHeaderNames()
ヘッダ名一覧の取得。

戻り値:
ヘッダ名のリスト

getHeaderValue

public PFObjectList getHeaderValue(java.lang.String headerName)
ヘッダ値取得

パラメータ:
headerName - ヘッダ名
戻り値:
ヘッダ値のリスト

getBodyText

public java.lang.String getBodyText()
メール本文の取得
MIMEマルチパートメールの場合、Content-Typeがtext/plainである最初のパートをメール本文とする。 text/plainのパートが存在しない場合はtext/*である最初のパートをメール本文とする。

戻り値:
メール本文

getBodyHtml

public java.lang.String getBodyHtml()
HTMLメール本文の取得
MIMEマルチパートメールの場合、Content-Typeがtext/htmlである最初のパートをメール本文とする。

戻り値:
メール本文

getBodyRich

public java.lang.String getBodyRich()
RichTextメール本文の取得
MIMEマルチパートメールの場合、Content-Typeがtext/richである最初のパートをメール本文とする。

戻り値:
メール本文

getMailSize

public int getMailSize()
メールサイズの取得。

戻り値:
メールサイズ(バイト)

getMailUIDL

public java.lang.String getMailUIDL()
メールUIDLの取得。

戻り値:
メールUIDL

getMessageSource

public java.lang.String getMessageSource()
メッセージソースの取得。

戻り値:
メッセージソース

saveMessageSource

public void saveMessageSource(java.lang.String fileName)
                       throws java.io.IOException
メッセージソースを保存する。

パラメータ:
fileName - 保存するファイル名(絶対パス)
例外:
PFComponentException - 入出力例外
java.io.IOException

getNumberOfAttachmentFiles

public int getNumberOfAttachmentFiles()
添付ファイル数の取得。

戻り値:
添付ファイル数

saveAllAttachmentFiles

public void saveAllAttachmentFiles(java.lang.String folderName)
                            throws java.io.IOException
添付ファイルの全保存。

パラメータ:
folderName - フォルダ名(絶対パス)
例外:
java.io.IOException

getAllAttachmentFileNames

public PFObjectList getAllAttachmentFileNames()
ファイル名の全取得。

戻り値:
添付ファイル名のリスト

getAllAttachmentContentTypes

public PFObjectList getAllAttachmentContentTypes()
Content-Typeの全取得。

戻り値:
添付ファイルのContent-Typeのリスト

getAllAttachmentContentTypeParameterNames

public PFObjectList getAllAttachmentContentTypeParameterNames()
Content-Typeパラメータ名の全取得。

戻り値:
添付ファイルのContent-Typeパラメータ名のリスト

getAllAttachmentContentTypeParameters

public PFObjectList getAllAttachmentContentTypeParameters(java.lang.String parameterName)
Content-Typeパラメータの全取得。

パラメータ:
parameterName - パラメータ名
戻り値:
添付ファイルのContent-Typeパラメータのリスト

saveAttachmentFile

public void saveAttachmentFile(int attachementFileNumber,
                               java.lang.String fileName)
                        throws java.io.IOException
添付ファイルを保存する。

パラメータ:
attachementFileNumber - 添付ファイルの番号
fileName - ファイル名
例外:
java.io.IOException

getAttachmentFileName

public java.lang.String getAttachmentFileName(int attachementFileNumber)
ファイル名の取得。

パラメータ:
attachementFileNumber - 添付ファイルの番号
戻り値:
添付ファイル名

getAttachmentContentType

public java.lang.String getAttachmentContentType(int attachementFileNumber)
Content-Typeの取得

パラメータ:
attachementFileNumber - 添付ファイルの番号
戻り値:
添付ファイルのContent-Type

getAttachmentContentTypeParameterNames

public PFObjectList getAttachmentContentTypeParameterNames(int attachementFileNumber)
Content-Typeパラメータ名の取得

パラメータ:
attachementFileNumber - 添付ファイルの番号
戻り値:
添付ファイルのContent-Typeパラメータ名のリスト

getAttachmentContentTypeParameter

public java.lang.String getAttachmentContentTypeParameter(int attachementFileNumber,
                                                          java.lang.String parameterName)
Content-Typeパラメータの取得

パラメータ:
attachementFileNumber - 添付ファイルの番号
parameterName - パラメータ名
戻り値:
添付ファイルのContent-Typeパラメータ