public interface MimeContainer
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(String contentId,
DataHandler dataHandler)
Add the given data handler as an attachment to this container.
|
boolean |
convertToXopPackage()
Turn this message into a XOP package.
|
DataHandler |
getAttachment(String contentId)
Return the attachment with the given content id, or
null if not found. |
boolean |
isXopPackage()
Indicate whether this container is a XOP package.
|
boolean isXopPackage()
true
when the constraints specified in
Identifying XOP Documents
are metboolean convertToXopPackage()
true
when the message actually is a XOP packagevoid addAttachment(String contentId, DataHandler dataHandler)
contentId
- the content id of the attachmentdataHandler
- the data handler containing the data of the attachmentDataHandler getAttachment(String contentId)
null
if not found.contentId
- the content id