public interface

MimeContainer

org.springframework.oxm.mime.MimeContainer

Class Overview

Represents a container for MIME attachments Concrete implementations might adapt a SOAPMessage or an email message.

Summary

Public Methods
abstract void addAttachment(String contentId, DataHandler dataHandler)
Add the given data handler as an attachment to this container.
abstract boolean convertToXopPackage()
Turn this message into a XOP package.
abstract DataHandler getAttachment(String contentId)
Return the attachment with the given content id, or null if not found.
abstract boolean isXopPackage()
Indicate whether this container is a XOP package.

Public Methods

public abstract void addAttachment (String contentId, DataHandler dataHandler)

Add 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

public abstract boolean convertToXopPackage ()

Turn this message into a XOP package.

Returns
  • true when the message actually is a XOP package
See Also

public abstract DataHandler getAttachment (String contentId)

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

Parameters
contentId the content id
Returns
  • the attachment, as a data handler

public abstract boolean isXopPackage ()

Indicate whether this container is a XOP package.

Returns
See Also