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 java.lang.String |
Action_Automatic |
static java.lang.String |
Action_Manual |
static java.lang.String |
Disposition_Deleted |
static java.lang.String |
Disposition_Denied |
static java.lang.String |
Disposition_Dispatched |
static java.lang.String |
Disposition_Displayed |
static java.lang.String |
Disposition_Error |
static java.lang.String |
Disposition_Failed |
static java.lang.String |
Disposition_Processed |
static java.lang.String |
Modifier_Error |
static java.lang.String |
ReportType |
static java.lang.String |
ReportTypeValueNotification |
static java.lang.String |
Send_Automatic |
static java.lang.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 java.lang.String |
toString(NotificationType type)
Provides the appropriate Disposition header value for the type
|
static java.lang.String |
toString(SendType mode)
Provides the appropriate Disposition header value for the mode
|
static java.lang.String |
toString(TriggerType mode)
Provides the appropriate Disposition header value for the mode.
|
public static final java.lang.String Action_Manual
public static final java.lang.String Action_Automatic
public static final java.lang.String Send_Manual
public static final java.lang.String Send_Automatic
public static final java.lang.String Disposition_Displayed
public static final java.lang.String Disposition_Processed
public static final java.lang.String Disposition_Dispatched
public static final java.lang.String Disposition_Deleted
public static final java.lang.String Disposition_Denied
public static final java.lang.String Disposition_Error
public static final java.lang.String Disposition_Failed
public static final java.lang.String Modifier_Error
public static final java.lang.String ReportType
public static final java.lang.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 java.lang.String toString(TriggerType mode)
mode - The mode to translatepublic static java.lang.String toString(SendType mode)
mode - The mode to translatepublic static java.lang.String toString(NotificationType type)
type - The type to translateCopyright © 2010-2019 NHIN Direct. All Rights Reserved.