This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


com.sun.mail.dsn
class DeliveryStatus

com.sun.mail.dsn.DeliveryStatus

public class DeliveryStatus
extends Object

A message/delivery-status message content, as defined in RFC 3464.


Field Summary
protected InternetHeaders messageDSN
          The DSN fields for the message.
protected InternetHeaders[] recipientDSN
          The DSN fields for each recipient.
 
Constructor Summary

          Construct a delivery status notification with no content.

          Construct a delivery status notification by parsing the supplied input stream.
 
Method Summary
 void

          Add deliver status notification information for another recipient.
 InternetHeaders

          Return all the per-message fields in the delivery status notification.
 InternetHeaders

          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

          Set the per-message fields in the delivery status notification.
 String

          
 void

          
 

Field Detail

messageDSN

protected InternetHeaders messageDSN
The DSN fields for the message.

recipientDSN

protected InternetHeaders[] recipientDSN
The DSN fields for each recipient.
Constructor Detail

DeliveryStatus

public DeliveryStatus()
               throws MessagingException
Construct a delivery status notification with no content.

Throws:
MessagingException

DeliveryStatus

public DeliveryStatus(InputStream is)
               throws MessagingException,
                      IOException
Construct a delivery status notification by parsing the supplied input stream.

Parameters:
is
Throws:
MessagingException
IOException
Method Detail

addRecipientDSN

public void addRecipientDSN(InternetHeaders h)
Add deliver status notification information for another recipient.

Parameters:
h

getMessageDSN

public InternetHeaders 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 )
 


getRecipientDSN

public InternetHeaders getRecipientDSN(int n)
Return the delivery status notification information for the specified recipient.

Parameters:
n

getRecipientDSNCount

public int getRecipientDSNCount()
Return the number of recipients for which we have per-recipient delivery status notification information.


setMessageDSN

public void setMessageDSN(InternetHeaders messageDSN)
Set the per-message fields in the delivery status notification.

Parameters:
messageDSN

toString

public String toString()
Overrides:
toString in class Object

writeTo

public void writeTo(OutputStream os)
             throws IOException,
                    MessagingException
Parameters:
os
Throws:
IOException
MessagingException


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.