public class MdnMimeMessageInspector extends Object
This class is typically used by the sender of the business message, which will receive an MDN from the receiving party.
Part 0 : multipart/report; report-type=disposition-notification; 0 : Sub part 0 : text/plain 0 : Sub part 1 : message/disposition-notification 0 : Sub part x : will not be used by Oxalis Part 1 : application/pkcs7-signature; name=smime.p7s; smime-type=signed-data
| Constructor and Description |
|---|
MdnMimeMessageInspector(javax.mail.internet.MimeMessage mdnMimeMessage) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getMdnFields() |
javax.mail.BodyPart |
getMessageDispositionNotificationPart()
We search for the first message/disposition-notification part.
|
javax.mail.internet.MimeMultipart |
getMultipartReport()
The multipart/report should contain both a text/plain part with textual information and
a message/disposition-notification part that should be examined for error/failure/warning.
|
javax.mail.BodyPart |
getPlainTextBodyPart()
We assume that the first text/plain part is the one containing any textual information.
|
String |
getPlainTextPartAsText() |
javax.mail.internet.MimeMultipart |
getSignedMultiPart() |
boolean |
isOkOrWarning(Mic outboundMic)
Decode MDN and make sure the message was processed (allow for warnings)
|
public MdnMimeMessageInspector(javax.mail.internet.MimeMessage mdnMimeMessage)
public javax.mail.internet.MimeMultipart getSignedMultiPart()
public javax.mail.internet.MimeMultipart getMultipartReport()
public javax.mail.BodyPart getPlainTextBodyPart()
public javax.mail.BodyPart getMessageDispositionNotificationPart()
public String getPlainTextPartAsText()
public boolean isOkOrWarning(Mic outboundMic) throws NoSuchAlgorithmException
outboundMic - the outbound mic to verify againstNoSuchAlgorithmExceptionCopyright © 2021 NorStella. All rights reserved.