HeaderObjects (NotesMIMEEntity - JavaScript™)
Read-only. All headers for a MIME entity.
Defined in
NotesMIMEEntitySyntax
getHeaderObjects() : java.util.Vector
Return value | Description |
---|---|
java.util.Vector |
Each vector element is of type NotesMIMEHeader. |
Examples
This button gets all the headers for a document with MIME content.var doc:NotesDocument = currentDocument.getDocument();
var mime:NotesMIMEEntity = doc.getMIMEEntity();
if (mime != null) {
//requestScope.status = mime.getHeaders();
var headers = mime.getHeaderObjects().iterator();
while (headers.hasNext()) {
var header:NotesMIMEHeader = headers.next();
requestScope.status += "\n(" +
header.getHeaderName() + ") " + header.getHeaderVal();
}
} else {
requestScope.status = "Not MIME - ";
}