Interface MimeContainer
public interface MimeContainer
Represents a container for MIME attachments
Concrete implementations might adapt a SOAPMessage or an email message.
- Since:
- 3.0
- Author:
- Arjen Poutsma
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAttachment(String contentId, jakarta.activation.DataHandler dataHandler) Add the given data handler as an attachment to this container.booleanTurn this message into a XOP package.@Nullable jakarta.activation.DataHandlergetAttachment(String contentId) Return the attachment with the given content id, ornullif not found.booleanIndicate whether this container is a XOP package.
- 
Method Details- 
isXopPackageboolean isXopPackage()Indicate whether this container is a XOP package.- Returns:
- truewhen the constraints specified in Identifying XOP Documents are met
- See Also:
 
- 
convertToXopPackageboolean convertToXopPackage()Turn this message into a XOP package.- Returns:
- truewhen the message actually is a XOP package
- See Also:
 
- 
addAttachmentAdd the given data handler as an attachment to this container.- Parameters:
- contentId- the content id of the attachment
- dataHandler- the data handler containing the data of the attachment
 
- 
getAttachment
 
-