クラス AbstractMimeMessage
java.lang.ObjectSE
org.springframework.ws.mime.AbstractMimeMessage
- 実装されているすべてのインターフェース:
MimeMessage,WebServiceMessage
- 既知の直属サブクラス
AbstractSoapMessage
MimeMessage インターフェースの抽象的な実装。便利なデフォルトの実装が含まれています。- 導入:
- 1.0.0
- 作成者:
- Arjen Poutsma
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明final AttachmentaddAttachment(StringSE contentId, FileSE file) FileSE からコンテンツを取得して、メッセージに添付ファイルを追加します。final AttachmentaddAttachment(StringSE contentId, org.springframework.core.io.InputStreamSource inputStreamSource, StringSE contentType) InputStreamSourceからコンテンツを取得して、メッセージに添付ファイルを追加します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.ws.mime.MimeMessage から継承されたメソッド
addAttachment, convertToXopPackage, getAttachment, getAttachments, isXopPackageインターフェース org.springframework.ws.WebServiceMessage から継承されたメソッド
getPayloadResult, getPayloadSource, writeTo
コンストラクターの詳細
AbstractMimeMessage
public AbstractMimeMessage()
メソッドの詳細
addAttachment
インターフェースからコピーされた説明:MimeMessageFileSE からコンテンツを取得して、メッセージに添付ファイルを追加します。コンテンツ型は、指定されたコンテンツファイルの名前によって決定されます。任意のファイル名( ".tmp" などで終わる可能性がある)を持つ一時ファイルにはこれを使用しないでください!
- 次で指定:
- インターフェース
MimeMessageのaddAttachment - パラメーター:
contentId- 添付ファイルのコンテンツ IDfile- コンテンツを取得するファイル- 戻り値:
- 追加された添付ファイル
- 例外:
AttachmentException- エラーの場合
addAttachment
public final Attachment addAttachment(StringSE contentId, org.springframework.core.io.InputStreamSource inputStreamSource, StringSE contentType) インターフェースからコピーされた説明:MimeMessageInputStreamSourceからコンテンツを取得して、メッセージに添付ファイルを追加します。基盤となる実装は
InputStreamSource.getInputStream()を複数回呼び出すことができるため、ソースから返されるストリームは、呼び出しごとに新しいストリームである必要があることに注意してください。- 次で指定:
- インターフェース
MimeMessageのaddAttachment - パラメーター:
contentId- 添付ファイルのコンテンツ IDinputStreamSource- コンテンツを取得するリソース (Spring のすべての Resource 実装をここに渡すことができます)contentType- 要素に使用するコンテンツ型- 戻り値:
- 追加された添付ファイル
- 関連事項:
Resource