Top Description Methods
org.springframework.oxm.mime

public Interface MimeUnmarshaller

extends Unmarshaller
Known Direct Implementers
org.springframework.oxm.jaxb.Jaxb2Marshaller
Imports
java.io.IOException, javax.xml.transform.Source, org.springframework.lang.Nullable, org.springframework.oxm.Unmarshaller, .XmlMappingException

Subinterface of org.springframework.oxm.Unmarshaller that can use MIME attachments to optimize storage of binary data. Attachments can be added as MTOM, XOP, or SwA.
Author
Arjen Poutsma
Since
3.0
See Also
SOAP Message Transmission Optimization Mechanism, XML-binary Optimized Packaging

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the object graph
unmarshal
(Source
the source to marshal from
source
,
MimeContainer
the MIME container to read extracted binary content from
mimeContainer
)

Unmarshals the given provided Source into an object graph, reading binary attachments from a MimeContainer.

Inherited from org.springframework.oxm.Unmarshaller:
supportsunmarshal

Method Detail

unmarshalback to summary
public Object unmarshal(Source source, MimeContainer mimeContainer) throws XmlMappingException, IOException

Unmarshals the given provided Source into an object graph, reading binary attachments from a MimeContainer.

Parameters
source:Source

the source to marshal from

mimeContainer:MimeContainer

the MIME container to read extracted binary content from

Returns:Object

the object graph

Exceptions
XmlMappingException:
if the given source cannot be mapped to an object
IOException:
if an I/O Exception occurs