Receives notifications of the content of a plain RFC822 or MIME message. Implement this interface and register an instance of that implementation with a MimeStreamParser instance using its {@link org.mime4j.MimeStreamParser#setContentHandler(ContentHandler)} method. The parser uses the ContentHandler instance to report basic message-related events like the start and end of the body of a part in a multipart MIME entity.
Events will be generated in the order the corresponding elements occur in the message stream parsed by the parser. E.g.:
startMessage()
startHeader()
field(...)
field(...)
...
endHeader()
startMultipart()
preamble(...)
startBodyPart()
startHeader()
field(...)
field(...)
...
endHeader()
body()
endBodyPart()
startBodyPart()
startHeader()
field(...)
field(...)
...
endHeader()
body()
endBodyPart()
epilogue(...)
endMultipart()
endMessage()
The above shows an example of a MIME message consisting of a multipart body containing two body parts.
See MIME RFCs 2045-2049 for more information on the structure of MIME messages and RFC 822 and 2822 for the general structure of Internet mail messages.
For a list of all members of this type, see IContentHandler Members.
| Type | Description |
|---|---|
| AbstractContentHandler | Abstract ContentHandler with default implementations of all the methods of the ContentHandler interface. |
Namespace: NI.Email.Mime
Assembly: NI.Email.Mime (in NI.Email.Mime.dll)