Package org.springframework.oxm.mime
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 Summary
Modifier and TypeMethodDescriptionvoid
addAttachment
(String contentId, DataHandler dataHandler) Add the given data handler as an attachment to this container.boolean
Turn this message into a XOP package.getAttachment
(String contentId) Return the attachment with the given content id, ornull
if not found.boolean
Indicate whether this container is a XOP package.
-
Method Details
-
isXopPackage
boolean isXopPackage()Indicate whether this container is a XOP package.- Returns:
true
when the constraints specified in Identifying XOP Documents are met- See Also:
-
convertToXopPackage
boolean convertToXopPackage()Turn this message into a XOP package.- Returns:
true
when the message actually is a XOP package- See Also:
-
addAttachment
Add the given data handler as an attachment to this container.- Parameters:
contentId
- the content id of the attachmentdataHandler
- the data handler containing the data of the attachment
-
getAttachment
Return the attachment with the given content id, ornull
if not found.- Parameters:
contentId
- the content id- Returns:
- the attachment, as a data handler
-