Top Description Methods
org.springframework.oxm.mime

public Interface MimeMarshaller

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

Subinterface of Marshaller 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 void
marshal(Object
the root of the object graph to marshal
graph
,
Result
the result to marshal to
result
,
MimeContainer
the MIME container to write extracted binary content to
mimeContainer
)

Marshals the object graph with the given root into the provided Result, writing binary data to a MimeContainer.

Inherited from org.springframework.oxm.Marshaller:
marshalsupports

Method Detail

marshalback to summary
public void marshal(Object graph, Result result, MimeContainer mimeContainer) throws XmlMappingException, IOException

Marshals the object graph with the given root into the provided Result, writing binary data to a MimeContainer.

Parameters
graph:Object

the root of the object graph to marshal

result:Result

the result to marshal to

mimeContainer:MimeContainer

the MIME container to write extracted binary content to

Exceptions
XmlMappingException:
if the given object cannot be marshalled to the result
IOException:
if an I/O exception occurs