|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MimeContainer
Represents a container for MIME attachments Concrete implementations might adapt a SOAPMessage or an email message.
Method Summary | |
---|---|
void |
addAttachment(java.lang.String contentId,
javax.activation.DataHandler dataHandler)
Add the given data handler as an attachment to this container. |
boolean |
convertToXopPackage()
Turn this message into a XOP package. |
javax.activation.DataHandler |
getAttachment(java.lang.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. |
Method Detail |
---|
boolean isXopPackage()
true
when the constraints specified in
Identifying XOP Documents
are metboolean convertToXopPackage()
true
when the message actually is a XOP packagevoid addAttachment(java.lang.String contentId, javax.activation.DataHandler dataHandler)
contentId
- the content id of the attachmentdataHandler
- the data handler containing the data of the attachmentjavax.activation.DataHandler getAttachment(java.lang.String contentId)
null
if not found.
contentId
- the content id
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |