org.exoplatform.mail.service.impl
Class DispositionNotification

java.lang.Object
  extended by org.exoplatform.mail.service.impl.DispositionNotification

public class DispositionNotification
extends java.lang.Object

Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Jun 25, 2009


Field Summary
protected  javax.mail.internet.InternetHeaders notifications
          The disposition notification content fields.
 
Constructor Summary
DispositionNotification()
          Construct a disposition notification with no content.
DispositionNotification(java.io.InputStream is)
          Construct a disposition notification by parsing the supplied input stream.
 
Method Summary
 javax.mail.internet.InternetHeaders getNotifications()
          Return all the disposition notification fields in the disposition notification.
 void setNotifications(javax.mail.internet.InternetHeaders notifications)
          Set the disposition notification fields in the disposition notification.
 java.lang.String toString()
           
 void writeTo(java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

notifications

protected javax.mail.internet.InternetHeaders notifications
The disposition notification content fields.

Constructor Detail

DispositionNotification

public DispositionNotification()
                        throws javax.mail.MessagingException
Construct a disposition notification with no content.

Throws:
javax.mail.MessagingException

DispositionNotification

public DispositionNotification(java.io.InputStream is)
                        throws javax.mail.MessagingException,
                               java.io.IOException
Construct a disposition notification by parsing the supplied input stream.

Throws:
javax.mail.MessagingException
java.io.IOException
Method Detail

getNotifications

public javax.mail.internet.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 )
 


setNotifications

public void setNotifications(javax.mail.internet.InternetHeaders notifications)
Set the disposition notification fields in the disposition notification.


writeTo

public void writeTo(java.io.OutputStream os)
             throws java.io.IOException,
                    javax.mail.MessagingException
Throws:
java.io.IOException
javax.mail.MessagingException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 eXo Platform SAS. All Rights Reserved.