abstract class AbstractMarshaller : Marshaller, Unmarshaller
Abstract implementation of the Marshaller and Unmarshaller interface. This implementation inspects the given Source or Result, and delegates further handling to overridable template methods.
Author
Arjen Poutsma
Author
Juergen Hoeller
Since
3.0
AbstractMarshaller()
Abstract implementation of the |
open fun isProcessExternalEntities(): Boolean
Returns the configured value for whether XML external entities are allowed. |
|
open fun isSupportDtd(): Boolean
Whether DTD parsing is supported. |
|
fun marshal(graph: Any, result: Result): Unit
Marshals the object graph with the given root into the provided This implementation inspects the given result, and calls |
|
open fun setProcessExternalEntities(processExternalEntities: Boolean): Unit
Indicates whether external XML entities are processed when unmarshalling. Default is Note: setting this option to |
|
open fun setSupportDtd(supportDtd: Boolean): Unit
Indicates whether DTD parsing should be supported. Default is |
|
fun unmarshal(source: Source): Any
Unmarshals the given provided This implementation inspects the given result, and calls |
open class CastorMarshaller : AbstractMarshaller, InitializingBean, BeanClassLoaderAware
Implementation of the If a target class is specified using Due to limitations of Castor's API, it is required to set the encoding used for writing to output streams. It defaults to |
|
open class JibxMarshaller : AbstractMarshaller, InitializingBean
Implementation of the The typical usage will be to set the |
|
open class XStreamMarshaller : AbstractMarshaller, BeanClassLoaderAware, InitializingBean
Implementation of the By default, XStream does not require any further configuration and can (un)marshal any class on the classpath. As such, it is not recommended to use the Due to XStream's API, it is required to set the encoding used for writing to OutputStreams. It defaults to NOTE: XStream is an XML serialization library, not a data binding library. Therefore, it has limited namespace support. As such, it is rather unsuitable for usage within Web Services. This marshaller requires XStream 1.4.5 or higher, as of Spring 4.3. Note that XStream construction has been reworked in 4.0, with the stream driver and the class loader getting passed into XStream itself now. |