public class MDNStandard extends MailStandard
| Modifier and Type | Class and Description |
|---|---|
static class |
MDNStandard.Headers
Standard header names for MDN headers
|
static class |
MDNStandard.MediaType
MIME types for MDN
|
| Modifier and Type | Field and Description |
|---|---|
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 |
DestinationHeaders, MailAddressSeparator, OriginHeaders| Constructor and Description |
|---|
MDNStandard() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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 testisNotification(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 testisNotification(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 testpublic 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 testpublic static String toString(TriggerType mode)
mode - The mode to translatepublic static String toString(SendType mode)
mode - The mode to translatepublic static String toString(NotificationType type)
type - The type to translateCopyright © 2010-2016 NHIN Direct. All Rights Reserved.