spring-framework / org.springframework.oxm.mime / MimeMarshaller

MimeMarshaller

interface MimeMarshaller : Marshaller

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
<a href="http://www.w3.org/TR/2004/WD-soap12-mtom-20040608/">SOAP Message Transmission Optimization Mechanism</a><a href="http://www.w3.org/TR/2005/REC-xop10-20050125/">XML-binary Optimized Packaging</a>

Functions

marshal

abstract fun marshal(graph: Any, result: Result, mimeContainer: MimeContainer): Unit

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

Inheritors

Jaxb2Marshaller

open class Jaxb2Marshaller : MimeMarshaller, MimeUnmarshaller, GenericMarshaller, GenericUnmarshaller, BeanClassLoaderAware, InitializingBean

Implementation of the GenericMarshaller interface for JAXB 2.2.

The typical usage will be to set either the "contextPath" or the "classesToBeBound" property on this bean, possibly customize the marshaller and unmarshaller by setting properties, schemas, adapters, and listeners, and to refer to it.