java.lang.Object
org.eclipse.angus.mail.dsn.Report
org.eclipse.angus.mail.dsn.DispositionNotification
A message/disposition-notification message content, as defined in
RFC 3798.
- Since:
- JavaMail 1.4.2
-
Field Summary
Modifier and TypeFieldDescriptionprotected InternetHeaders
The disposition notification content fields. -
Constructor Summary
ConstructorDescriptionConstruct a disposition notification with no content.Construct a disposition notification by parsing the supplied input stream. -
Method Summary
Modifier and TypeMethodDescriptionReturn all the disposition notification fields in the disposition notification.void
setNotifications
(InternetHeaders notifications) Set the disposition notification fields in the disposition notification.toString()
void
writeTo
(OutputStream os)
-
Field Details
-
notifications
The disposition notification content fields.
-
-
Constructor Details
-
DispositionNotification
Construct a disposition notification with no content.- Throws:
MessagingException
- for failures
-
DispositionNotification
Construct a disposition notification by parsing the supplied input stream.- Parameters:
is
- the input stream- Throws:
IOException
- for I/O errors reading the streamMessagingException
- for other failures
-
-
Method Details
-
getNotifications
Return all the disposition notification fields in the disposition notification. The fields are defined as:disposition-notification-content = [ reporting-ua-field CRLF ] [ mdn-gateway-field CRLF ] [ original-recipient-field CRLF ] final-recipient-field CRLF [ original-message-id-field CRLF ] disposition-field CRLF *( failure-field CRLF ) *( error-field CRLF ) *( warning-field CRLF ) *( extension-field CRLF )
- Returns:
- the DSN fields
-
setNotifications
Set the disposition notification fields in the disposition notification.- Parameters:
notifications
- the DSN fields
-
writeTo
- Throws:
IOException
-
toString
-