java.lang.Object
org.eclipse.angus.mail.dsn.Report
org.eclipse.angus.mail.dsn.DeliveryStatus
A message/delivery-status message content, as defined in
RFC 3464.
- Since:
- JavaMail 1.4
-
Field Summary
Modifier and TypeFieldDescriptionprotected InternetHeaders
The DSN fields for the message.protected InternetHeaders[]
The DSN fields for each recipient. -
Constructor Summary
ConstructorDescriptionConstruct a delivery status notification with no content.Construct a delivery status notification by parsing the supplied input stream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add deliver status notification information for another recipient.Return all the per-message fields in the delivery status notification.getRecipientDSN
(int n) Return the delivery status notification information for the specified recipient.int
Return the number of recipients for which we have per-recipient delivery status notification information.void
setMessageDSN
(InternetHeaders messageDSN) Set the per-message fields in the delivery status notification.toString()
void
writeTo
(OutputStream os)
-
Field Details
-
messageDSN
The DSN fields for the message. -
recipientDSN
The DSN fields for each recipient.
-
-
Constructor Details
-
DeliveryStatus
Construct a delivery status notification with no content.- Throws:
MessagingException
- for failures
-
DeliveryStatus
Construct a delivery status 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
-
getMessageDSN
Return all the per-message fields in the delivery status notification. The fields are defined as:per-message-fields = [ original-envelope-id-field CRLF ] reporting-mta-field CRLF [ dsn-gateway-field CRLF ] [ received-from-mta-field CRLF ] [ arrival-date-field CRLF ] *( extension-field CRLF )
- Returns:
- the per-message DSN fields
-
setMessageDSN
Set the per-message fields in the delivery status notification.- Parameters:
messageDSN
- the per-message DSN fields
-
getRecipientDSNCount
public int getRecipientDSNCount()Return the number of recipients for which we have per-recipient delivery status notification information.- Returns:
- the number of recipients
-
getRecipientDSN
Return the delivery status notification information for the specified recipient.- Parameters:
n
- the recipient number- Returns:
- the DSN fields for the recipient
-
addRecipientDSN
Add deliver status notification information for another recipient.- Parameters:
h
- the DSN fields for the recipient
-
writeTo
- Throws:
IOException
-
toString
-