com.sun.mail.dsn
类 DeliveryStatus

java.lang.Object
  继承者 com.sun.mail.dsn.DeliveryStatus

public class DeliveryStatus
extends Object

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


字段摘要
protected  InternetHeaders messageDSN
          The DSN fields for the message.
protected  InternetHeaders[] recipientDSN
          The DSN fields for each recipient.
 
构造方法摘要
DeliveryStatus()
          Construct a delivery status notification with no content.
DeliveryStatus(InputStream is)
          Construct a delivery status notification by parsing the supplied input stream.
 
方法摘要
 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.
 String toString()
           
 void writeTo(OutputStream os)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

messageDSN

protected InternetHeaders messageDSN
The DSN fields for the message.


recipientDSN

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

构造方法详细信息

DeliveryStatus

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

抛出:
MessagingException

DeliveryStatus

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

抛出:
MessagingException
IOException
方法详细信息

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 )
 


setMessageDSN

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


getRecipientDSNCount

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


getRecipientDSN

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


addRecipientDSN

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


writeTo

public void writeTo(OutputStream os)
             throws IOException,
                    MessagingException
抛出:
IOException
MessagingException

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2013. All Rights Reserved.