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

MimeUnmarshaller

interface MimeUnmarshaller : Unmarshaller

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
<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

unmarshal

abstract fun unmarshal(source: Source, mimeContainer: MimeContainer): Any

Unmarshals the given provided Source into an object graph, reading binary attachments from 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.