Class DispositionNotification

java.lang.Object
org.eclipse.angus.mail.dsn.Report
org.eclipse.angus.mail.dsn.DispositionNotification

public class DispositionNotification extends Report
A message/disposition-notification message content, as defined in RFC 3798.
Since:
JavaMail 1.4.2
  • Field Details

    • notifications

      protected InternetHeaders notifications
      The disposition notification content fields.
  • Constructor Details

  • Method Details

    • getNotifications

      public InternetHeaders getNotifications()
      Return all the disposition notification fields in the disposition notification. The fields are defined as:
          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 )
       
      Returns:
      the DSN fields
    • setNotifications

      public void setNotifications(InternetHeaders notifications)
      Set the disposition notification fields in the disposition notification.
      Parameters:
      notifications - the DSN fields
    • writeTo

      public void writeTo(OutputStream os) throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object