Modifier and Type | Field and Description |
---|---|
private static MailLogger |
logger |
protected InternetHeaders |
notifications
The disposition notification content fields.
|
Constructor and Description |
---|
DispositionNotification()
Construct a disposition notification with no content.
|
DispositionNotification(java.io.InputStream is)
Construct a disposition notification by parsing the
supplied input stream.
|
Modifier and Type | Method and Description |
---|---|
InternetHeaders |
getNotifications()
Return all the disposition notification fields in the
disposition notification.
|
void |
setNotifications(InternetHeaders notifications)
Set the disposition notification fields in the
disposition notification.
|
java.lang.String |
toString() |
private static void |
writeInternetHeaders(InternetHeaders h,
LineOutputStream los) |
void |
writeTo(java.io.OutputStream os) |
private static MailLogger logger
protected InternetHeaders notifications
public DispositionNotification() throws MessagingException
MessagingException
- for failurespublic DispositionNotification(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 getNotifications()
disposition-notification-content = [ reporting-ua-field CRLF ] [ mdn-gateway-field CRLF ] [ original-recipient-field CRLF ] final-recipient-field CRLF [ original-message-id-field CRLF ] disposition-field CRLF *( failure-field CRLF ) *( error-field CRLF ) *( warning-field CRLF ) *( extension-field CRLF )
public void setNotifications(InternetHeaders notifications)
notifications
- the DSN fieldspublic void writeTo(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
private static void writeInternetHeaders(InternetHeaders h, LineOutputStream los) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object