|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.mail.MailStandard
org.nhindirect.stagent.mail.notifications.MDNStandard
public class MDNStandard
Provides constants and utility functions for working with MDN
| Nested Class Summary | |
|---|---|
static class |
MDNStandard.Headers
Standard header names for MDN headers |
static class |
MDNStandard.MediaType
MIME types for MDN |
| Field Summary | |
|---|---|
static String |
Action_Automatic
|
static String |
Action_Manual
|
static String |
Disposition_Deleted
|
static String |
Disposition_Denied
|
static String |
Disposition_Dispatched
|
static String |
Disposition_Displayed
|
static String |
Disposition_Error
|
static String |
Disposition_Processed
|
static String |
Modifier_Error
|
static String |
ReportType
|
static String |
ReportTypeValueNotification
|
static String |
Send_Automatic
|
static String |
Send_Manual
|
| Fields inherited from class org.nhindirect.stagent.mail.MailStandard |
|---|
DestinationHeaders, MailAddressSeparator, OriginHeaders |
| Constructor Summary | |
|---|---|
MDNStandard()
|
|
| Method Summary | |
|---|---|
static boolean |
hasMDNRequest(MimeEntity entity)
Tests the entity to see if it contains an MDN request. |
static boolean |
hasMDNRequest(javax.mail.internet.MimeMessage msg)
Tests the message to see if it contains an MDN request. |
static boolean |
isNotification(MimeEntity entity)
Tests the entity to determine if it is a disposition notification body part. |
static boolean |
isNotification(javax.mail.internet.MimeMessage msg)
Tests the message to determine if it is a disposition notification body part. |
static boolean |
isReport(MimeEntity entity)
Tests the entity to see if it is an MDN. |
static boolean |
isReport(javax.mail.internet.MimeMessage msg)
Tests the message to see if it is an MDN. |
static String |
toString(NotificationType type)
Provides the appropriate Disposition header value for the type |
static String |
toString(SendType mode)
Provides the appropriate Disposition header value for the mode |
static String |
toString(TriggerType mode)
Provides the appropriate Disposition header value for the mode. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String Action_Manual
public static final String Action_Automatic
public static final String Send_Manual
public static final String Send_Automatic
public static final String Disposition_Displayed
public static final String Disposition_Processed
public static final String Disposition_Dispatched
public static final String Disposition_Deleted
public static final String Disposition_Denied
public static final String Disposition_Error
public static final String Modifier_Error
public static final String ReportType
public static final String ReportTypeValueNotification
| Constructor Detail |
|---|
public MDNStandard()
| Method Detail |
|---|
public static boolean hasMDNRequest(MimeEntity entity)
entity - The entity to test.
public static boolean hasMDNRequest(javax.mail.internet.MimeMessage msg)
The - message to test.
public static boolean isReport(MimeEntity entity)
MDN status is indicated by the appropriate main body Content-Type. The multipart body will contain the actual disposition notification.
entity - The entity to test
isNotification(MimeEntity)public static boolean isReport(javax.mail.internet.MimeMessage msg)
MDN status is indicated by the appropriate main body Content-Type. The multipart body will contain the actual disposition notification.
msg - The message to test
isNotification(MimeMessage)public static boolean isNotification(MimeEntity entity)
Notification status is indicated by the appropriate Content-Type. The notification section will be a body part of the appropriate MDN report multipart body.
entity - The entity to test
public static boolean isNotification(javax.mail.internet.MimeMessage msg)
Notification status is indicated by the appropriate Content-Type. The notification section will be a body part of the appropriate MDN report multipart body.
msg - The message to test
public static String toString(TriggerType mode)
mode - The mode to translate
public static String toString(SendType mode)
mode - The mode to translate
public static String toString(NotificationType type)
type - The type to translate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||