接口的使用
org.springframework.oxm.Marshaller
使用Marshaller的程序包 程序包 说明 org.springframework.http.converter.xml Provides HttpMessageConverter implementations for handling XML.org.springframework.jms.support.converter Provides a MessageConverter abstraction to convert between Java objects and JMS messages.org.springframework.messaging.converter Provides support for message conversion.org.springframework.oxm Root package for Spring's O/X Mapping integration classes.org.springframework.oxm.jaxb Package providing integration of JAXB with Spring's O/X Mapping support.org.springframework.oxm.jibx Package providing integration of JiBX with Spring's O/X Mapping support.org.springframework.oxm.mime Contains (un)marshallers optimized to store binary data in MIME attachments.org.springframework.oxm.support Provides generic support classes for using Spring's O/X Mapping integration within various scenario's.org.springframework.oxm.xstream Package providing integration of XStream with Spring's O/X Mapping support.org.springframework.web.servlet.view.xml Support classes for providing a View implementation based on XML Marshalling.org.springframework.http.converter.xml中Marshaller的使用
参数类型为Marshaller的org.springframework.http.converter.xml中的方法 修饰符和类型 方法 说明 void
MarshallingHttpMessageConverter. setMarshaller(Marshaller marshaller)
Set theMarshaller
to be used by this message converter.参数类型为Marshaller的org.springframework.http.converter.xml中的构造器 构造器 说明 MarshallingHttpMessageConverter(Marshaller marshaller)
Construct a newMarshallingMessageConverter
with the givenMarshaller
set.MarshallingHttpMessageConverter(Marshaller marshaller, Unmarshaller unmarshaller)
Construct a newMarshallingMessageConverter
with the givenMarshaller
andUnmarshaller
.org.springframework.jms.support.converter中Marshaller的使用
参数类型为Marshaller的org.springframework.jms.support.converter中的方法 修饰符和类型 方法 说明 protected BytesMessage
MarshallingMessageConverter. marshalToBytesMessage(Object object, Session session, Marshaller marshaller)
Marshal the given object to aBytesMessage
.protected Message
MarshallingMessageConverter. marshalToMessage(Object object, Session session, Marshaller marshaller, MessageType targetType)
Template method that allows for custom message marshalling.protected TextMessage
MarshallingMessageConverter. marshalToTextMessage(Object object, Session session, Marshaller marshaller)
Marshal the given object to aTextMessage
.void
MarshallingMessageConverter. setMarshaller(Marshaller marshaller)
Set theMarshaller
to be used by this message converter.参数类型为Marshaller的org.springframework.jms.support.converter中的构造器 构造器 说明 MarshallingMessageConverter(Marshaller marshaller)
Construct a newMarshallingMessageConverter
with the givenMarshaller
set.MarshallingMessageConverter(Marshaller marshaller, Unmarshaller unmarshaller)
Construct a newMarshallingMessageConverter
with the given Marshaller and Unmarshaller.org.springframework.messaging.converter中Marshaller的使用
返回Marshaller的org.springframework.messaging.converter中的方法 修饰符和类型 方法 说明 Marshaller
MarshallingMessageConverter. getMarshaller()
Return the configured Marshaller.参数类型为Marshaller的org.springframework.messaging.converter中的方法 修饰符和类型 方法 说明 void
MarshallingMessageConverter. setMarshaller(Marshaller marshaller)
Set theMarshaller
to be used by this message converter.参数类型为Marshaller的org.springframework.messaging.converter中的构造器 构造器 说明 MarshallingMessageConverter(Marshaller marshaller)
Constructor withMarshaller
.org.springframework.oxm中Marshaller的使用
org.springframework.oxm中Marshaller的子接口 修饰符和类型 接口 说明 interface
GenericMarshaller
Subinterface ofMarshaller
that has support for Java 5 generics.org.springframework.oxm.jaxb中Marshaller的使用
实现Marshaller的org.springframework.oxm.jaxb中的类 修饰符和类型 类 说明 class
Jaxb2Marshaller
Implementation of theGenericMarshaller
interface for JAXB 2.2.org.springframework.oxm.jibx中Marshaller的使用
实现Marshaller的org.springframework.oxm.jibx中的类 修饰符和类型 类 说明 class
JibxMarshaller
已过时。as of Spring Framework 5.1.5, due to the lack of activity on the JiBX projectorg.springframework.oxm.mime中Marshaller的使用
org.springframework.oxm.mime中Marshaller的子接口 修饰符和类型 接口 说明 interface
MimeMarshaller
Subinterface ofMarshaller
that can use MIME attachments to optimize storage of binary data.org.springframework.oxm.support中Marshaller的使用
实现Marshaller的org.springframework.oxm.support中的类 修饰符和类型 类 说明 class
AbstractMarshaller
Abstract implementation of theMarshaller
andUnmarshaller
interface.返回Marshaller的org.springframework.oxm.support中的方法 修饰符和类型 方法 说明 Marshaller
MarshallingSource. getMarshaller()
Return theMarshaller
used by thisMarshallingSource
.参数类型为Marshaller的org.springframework.oxm.support中的构造器 构造器 说明 MarshallingSource(Marshaller marshaller, Object content)
Create a newMarshallingSource
with the given marshaller and content.org.springframework.oxm.xstream中Marshaller的使用
实现Marshaller的org.springframework.oxm.xstream中的类 修饰符和类型 类 说明 class
XStreamMarshaller
Implementation of theMarshaller
interface for XStream.org.springframework.web.servlet.view.xml中Marshaller的使用
参数类型为Marshaller的org.springframework.web.servlet.view.xml中的方法 修饰符和类型 方法 说明 void
MarshallingView. setMarshaller(Marshaller marshaller)
Set theMarshaller
to be used by this view.参数类型为Marshaller的org.springframework.web.servlet.view.xml中的构造器 构造器 说明 MarshallingView(Marshaller marshaller)
Constructs a newMarshallingView
with the givenMarshaller
set.