|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.mail.notifications.Notification
public class Notification
Represents notification (MDN) content.
The NotificationMessage represents the actually sendable MDN.
| Constructor Summary | |
|---|---|
Notification(Disposition disposition)
Initializes a new instance with the supplied Disposition |
|
Notification(NotificationType notification)
Initializes a new instance of the supplied notification type. |
|
| Method Summary | |
|---|---|
javax.mail.internet.MimeMultipart |
getAsMultipart()
Gets the notification object as a MimeMultipart object; |
Disposition |
getDisposition()
Gets the Disposition for this instance. |
java.lang.String |
getError()
Gets the value of the error header. |
java.lang.String |
getExplanation()
Gets the body part corresponding to the notification explanation. |
java.lang.String |
getFinalRecipeint()
Gets the final recipient for this instance. |
MdnGateway |
getGateway()
Gets the gateway that triggered this notification (optional). |
java.io.InputStream |
getInputStream()
Gets an input stream of this notification that can be serialized. |
java.lang.String |
getOriginalMessageId()
Gets the ID of the message that triggered this notification (optional). |
java.util.Collection<MimeEntity> |
getParts()
Returns a collection of body parts of the multipart report for this notification. |
ReportingUserAgent |
getReportingAgent()
Gets the reporting agent that triggered this notification (optional). |
byte[] |
serializeToBytes()
Serializes the notification to an array of bytes. |
void |
setDisposition(Disposition disposition)
Sets the Disposition for this instance. |
void |
setError(java.lang.String error)
Sets the value of the error header. |
void |
setExplanation(java.lang.String explanation)
Sets the body part corresponding to the notification explanation. |
void |
setFinalRecipient(java.lang.String recip)
Sets final recipient. |
void |
setGateway(MdnGateway gateway)
Sets the gateway that triggered this notification (optional). |
void |
setOriginalMessageId(java.lang.String messageId)
Sets the ID of the message that triggered this notification (optional). |
void |
setReportingAgent(ReportingUserAgent reportingAgent)
Sets the reporting agent that triggered this notification (optional). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Notification(NotificationType notification)
notification - The notification disposition for this instance.public Notification(Disposition disposition)
Disposition
disposition - The notification disposition for this instance.| Method Detail |
|---|
public java.lang.String getExplanation()
From RFC 3798, section 3, item b:
The first component of the multipart/report contains a human- readable explanation of the MDN, as described in [RFC-REPORT].
public void setExplanation(java.lang.String explanation)
explanation - The body part corresponding to the notification explanation.public ReportingUserAgent getReportingAgent()
public void setReportingAgent(ReportingUserAgent reportingAgent)
reportingAgent - The reporting agent that triggered this notificationpublic MdnGateway getGateway()
public void setGateway(MdnGateway gateway)
gateway - The gateway that triggered this notificationpublic java.lang.String getOriginalMessageId()
public void setOriginalMessageId(java.lang.String messageId)
messageId - The ID of the message that triggered this notificationpublic java.lang.String getFinalRecipeint()
public void setFinalRecipient(java.lang.String recip)
messageId - The final recipient.public Disposition getDisposition()
Disposition for this instance.
Disposition for this instancepublic void setDisposition(Disposition disposition)
Disposition for this instance.
disposition - The Disposition for this instancepublic java.lang.String getError()
public void setError(java.lang.String error)
error - The value of the error header.public java.util.Collection<MimeEntity> getParts()
public javax.mail.internet.MimeMultipart getAsMultipart()
public byte[] serializeToBytes()
public java.io.InputStream getInputStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||