getNthHeader (MIMEEntity - Java)

Returns a header associated with a MIME entity.

Note: This method is new with Release 6.

Defined in

MIMEEntity

Syntax

public MIMEHeader getNthHeader(String headerName) 
     throws NotesException
public MIMEHeader getNthHeader(String headerName, int instance) 
     throws NotesException

Parameters

String headerName

The name of the header.

int instance

The header instance where 1 is the first header. Defaults to 1.

Usage

Multiple headers of the same name exist in the order they were last written.

Return value

MIMEHeader

The MIME header or null.

Example