Top Description Methods
org.springframework.oxm.mime

public Interface MimeContainer

Imports
jakarta.activation.DataHandler, org.springframework.lang.Nullable

Represents a container for MIME attachments Concrete implementations might adapt a SOAPMessage or an email message.
Author
Arjen Poutsma
Since
3.0
See Also
XML-binary Optimized Packaging

Method Summary

Modifier and TypeMethod and Description
public void
addAttachment(String
the content id of the attachment
contentId
,
DataHandler
the data handler containing the data of the attachment
dataHandler
)

Add the given data handler as an attachment to this container.

public boolean

Returns:

true when the message actually is a XOP package
convertToXopPackage
()

Turn this message into a XOP package.

public DataHandler

Returns:

the attachment, as a data handler
getAttachment
(String
the content id
contentId
)

Return the attachment with the given content id, or null if not found.

public boolean

Returns:

true when the constraints specified in Identifying XOP Documents are met
isXopPackage
()

Indicate whether this container is a XOP package.

Method Detail

addAttachmentback to summary
public void addAttachment(String contentId, DataHandler dataHandler)

Add the given data handler as an attachment to this container.

Parameters
contentId:String

the content id of the attachment

dataHandler:DataHandler

the data handler containing the data of the attachment

convertToXopPackageback to summary
public boolean convertToXopPackage()

Turn this message into a XOP package.

Returns:boolean

true when the message actually is a XOP package

See Also
XOP Packages
getAttachmentback to summary
public DataHandler getAttachment(String contentId)

Return the attachment with the given content id, or null if not found.

Parameters
contentId:String

the content id

Returns:DataHandler

the attachment, as a data handler

Annotations
@Nullable
isXopPackageback to summary
public boolean isXopPackage()

Indicate whether this container is a XOP package.

Returns:boolean

true when the constraints specified in Identifying XOP Documents are met

See Also
XOP Packages