Spring Web Services Framework

org.springframework.oxm.mime
Interface MimeContainer


public interface MimeContainer

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

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
XML-binary Optimized Packaging

Method Summary
 void addAttachment(String contentId, DataHandler dataHandler)
          Adds the given data handler as an attachment to this container.
 boolean convertToXopPackage()
          Turns this message into a XOP package.
 DataHandler getAttachment(String contentId)
          Returns the attachment with the given content id, or null if not found.
 boolean isXopPackage()
          Indicates whether this container is a XOP package.
 

Method Detail

isXopPackage

boolean isXopPackage()
Indicates whether this container is a XOP package.

Returns:
true when the constraints specified in Identifying XOP Documents are met.
See Also:
XOP Packages

convertToXopPackage

boolean convertToXopPackage()
Turns this message into a XOP package.

Returns:
true when the message is a XOP package
See Also:
XOP Packages

addAttachment

void addAttachment(String contentId,
                   DataHandler dataHandler)
Adds 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

DataHandler getAttachment(String contentId)
Returns the attachment with the given content id, or null if not found.

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

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.