open class CatchAllConverter : Converter
XStream Converter that supports all classes, but throws exceptions for (un)marshalling. The main purpose of this class is to register this converter as a catch-all last converter with a normal or higher priority, in addition to converters that explicitly handle the domain classes that should be supported. As a result, default XStream converters with lower priorities and possible security vulnerabilities do not get invoked. For instance:
|
|
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. |