|
||||||||||
| 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 |
|---|
| 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 |
| 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 | |||||||||