public class XStreamJsonMarshaller extends XStreamMarshallerImpl
AdaptrisMarshaller
using XStream.
This implementation is not intended to be used for marshalling adapter configuration (although it might be possible), but is
intended for use where JSON is the desired data format used for transfer between systems. It uses JettisonMappedXmlDriver
which allows conversion to and from java objects. However, restrictions will apply as detailed in the XStream JSON Tutorial
In the adapter configuration file this class is aliased as xstream-json-marshaller which is the preferred alternative to the fully qualified classname when building your configuration.
AbstractMarshaller.Deserializer, AbstractMarshaller.Serializer
AdaptrisMarshaller.MarshalInputStream, AdaptrisMarshaller.MarshalOutputStream
instance
Constructor and Description |
---|
XStreamJsonMarshaller() |
Modifier and Type | Method and Description |
---|---|
protected com.thoughtworks.xstream.XStream |
getInstance()
Typically it will do something like this:-
|
marshal, marshal, unmarshal
invokeDeserialize, invokeSerialize, marshal, marshal, marshal, marshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
uncheckedMarshal, uncheckedUnmarshal
protected com.thoughtworks.xstream.XStream getInstance()
XStreamMarshallerImpl
if (instance == null){
create and configure a new instance
}
return instance;
getInstance
in class XStreamMarshallerImpl