BoundaryEnd (NotesMIMEEntity - JavaScript)

マルチパートエンティティの最後の子エンティティの後に続く境界です。

定義場所

NotesMIMEEntity

構文

getBoundaryEnd() : string

使用法

このプロパティは、マルチパートエンティティの子エンティティに適用されます。それ以外の場合、このプロパティは空ストリングです。

MIME 境界は、親エンティティの Content-Type ヘッダーの boundary パラメータから RFC-2046 の規格に従って構築されます。

このボタンは、現在の文書が MIME 形式の場合に、その文書のコンテンツを表示します。
// Do not automatically convert MIME to rich text
session.setConvertMIME(false);
var mime:NotesMIMEEntity = currentDocument.getDocument().getMIMEEntity();
if (mime != null) {
	// If multipart MIME entity
	if (mime.getContentType().equals("multipart")) {
		// Print preamble
		if (!mime.getPreamble().equals("")) {
			requestScope.status = "Preamble:¥t" + mime.getPreamble() + "¥n";
		}
		// Print content of each child entity
		var child1:NotesMIMEEntity = mime.getFirstChildEntity();
		while (child1 != null) {
			requestScope.status += 
			child1.getBoundaryStart() + child1.getContentAsText() +
			child1.getBoundaryEnd() + "¥n";
			var child2:NotesMIMEEntity = child1.getFirstChildEntity();
			if (child2 == null) {
				child2 = child1.getNextSibling();
				if (child2 == null) {
					child2 = child1.getParentEntity();
					if (child2 != null) {
						child2 = child2.getNextSibling();
					}
				}
			}
			child1 = child2;
		}
	}
	// If not multipart, just print content
	else {
		requestScope.status = mime.getContentAsText();
	}
} else {
	requestScope.status = "Not MIME";
}
// Restore conversion
session.setConvertMIME(true);

言語間の参照

LotusScript® NotesMIMEEntity クラスの BoundaryEnd プロパティ

Java™ MIMEEntity クラスの BoundaryEnd プロパティ