| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
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. |
String |
toString() |
void |
writeTo(OutputStream os) |
Field Detail |
---|
protected InternetHeaders messageDSN
protected InternetHeaders[] recipientDSN
Constructor Detail |
---|
public DeliveryStatus() throws MessagingException
MessagingException
public DeliveryStatus(InputStream is) throws MessagingException, IOException
is
MessagingException
IOException
Method Detail |
---|
public void addRecipientDSN(InternetHeaders h)
h
public 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 InternetHeaders getRecipientDSN(int n)
n
public int getRecipientDSNCount()
public void setMessageDSN(InternetHeaders messageDSN)
messageDSN
public String toString()
toString
in class Object
public void writeTo(OutputStream os) throws IOException, MessagingException
os
IOException
MessagingException
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |