Package org.springframework.oxm.mime
Interface MimeMarshaller
- All Superinterfaces:
Marshaller
- All Known Implementing Classes:
Jaxb2Marshaller
Subinterface of
Marshaller
that can use MIME attachments to optimize
storage of binary data. Attachments can be added as MTOM, XOP, or SwA.- Since:
- 3.0
- Author:
- Arjen Poutsma
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
marshal
(Object graph, Result result, MimeContainer mimeContainer) Marshals the object graph with the given root into the providedResult
, writing binary data to aMimeContainer
.Methods inherited from interface org.springframework.oxm.Marshaller
marshal, supports
-
Method Details
-
marshal
void marshal(Object graph, Result result, @Nullable MimeContainer mimeContainer) throws XmlMappingException, IOException Marshals the object graph with the given root into the providedResult
, writing binary data to aMimeContainer
.- Parameters:
graph
- the root of the object graph to marshalresult
- the result to marshal tomimeContainer
- the MIME container to write extracted binary content to- Throws:
XmlMappingException
- if the given object cannot be marshalled to the resultIOException
- if an I/O exception occurs
-