| Modifier and Type | Field | Description |
|---|---|---|
protected InternetHeaders |
messageDSN |
The DSN fields for the message.
|
protected InternetHeaders[] |
recipientDSN |
The DSN fields for each recipient.
|
| Constructor | Description |
|---|---|
DeliveryStatus() |
Construct a delivery status notification with no content.
|
DeliveryStatus(java.io.InputStream is) |
Construct a delivery status notification by parsing the
supplied input stream.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addRecipientDSN(InternetHeaders h) |
Add deliver status notification information for another
recipient.
|
InternetHeaders |
getMessageDSN() |
Return all the per-message fields in the delivery status notification.
|
InternetHeaders |
getRecipientDSN(int n) |
Return the delivery status notification information for
the specified recipient.
|
int |
getRecipientDSNCount() |
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.
|
java.lang.String |
toString() |
|
void |
writeTo(java.io.OutputStream os) |
protected InternetHeaders messageDSN
protected InternetHeaders[] recipientDSN
public DeliveryStatus()
throws MessagingException
MessagingException - for failurespublic DeliveryStatus(java.io.InputStream is)
throws MessagingException,
java.io.IOException
is - the input streamjava.io.IOException - for I/O errors reading the streamMessagingException - for other failurespublic InternetHeaders getMessageDSN()
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 )
public void setMessageDSN(InternetHeaders messageDSN)
messageDSN - the per-message DSN fieldspublic int getRecipientDSNCount()
public InternetHeaders getRecipientDSN(int n)
n - the recipient numberpublic void addRecipientDSN(InternetHeaders h)
h - the DSN fields for the recipientpublic void writeTo(java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 Oracle. All rights reserved.