接口 MimeMarshaller
- 所有超级接口:
Marshaller
- 所有已知实现类:
Jaxb2Marshaller
public interface MimeMarshaller extends Marshaller
Subinterface ofMarshaller
that can use MIME attachments to optimize storage of binary data. Attachments can be added as MTOM, XOP, or SwA.- 从以下版本开始:
- 3.0
- 作者:
- Arjen Poutsma
- 另请参阅:
- SOAP Message Transmission Optimization Mechanism, XML-binary Optimized Packaging
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
marshal(Object graph, Result result, MimeContainer mimeContainer)
Marshals the object graph with the given root into the providedResult
, writing binary data to aMimeContainer
.从接口继承的方法 org.springframework.oxm.Marshaller
marshal, supports
方法详细资料
marshal
void marshal(Object graph, Result result, MimeContainer mimeContainer) throws XmlMappingException, IOException
Marshals the object graph with the given root into the providedResult
, writing binary data to aMimeContainer
.- 参数:
graph
- the root of the object graph to marshalresult
- the result to marshal tomimeContainer
- the MIME container to write extracted binary content to- 抛出:
XmlMappingException
- if the given object cannot be marshalled to the resultIOException
- if an I/O exception occurs