@Deserializes(value={"application/json","json"}) public class JsonDeserializer extends java.lang.Object implements Deserializer
Constructor and Description |
---|
JsonDeserializer(ParameterNameProvider provider,
TypeNameExtractor extractor,
XStreamBuilder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
deserialize(java.io.InputStream inputStream,
ResourceMethod method) |
com.thoughtworks.xstream.XStream |
getConfiguredXStream(java.lang.reflect.Method javaMethod,
java.lang.Class<?>[] types)
Returns an xstream instance already configured.
|
protected com.thoughtworks.xstream.io.HierarchicalStreamDriver |
getHierarchicalStreamDriver()
You can override this method for configuring Driver before serialization
|
protected com.thoughtworks.xstream.XStream |
getXStream()
Extension point to configure your xstream instance.
|
public JsonDeserializer(ParameterNameProvider provider, TypeNameExtractor extractor, XStreamBuilder builder)
public java.lang.Object[] deserialize(java.io.InputStream inputStream, ResourceMethod method)
deserialize
in interface Deserializer
public com.thoughtworks.xstream.XStream getConfiguredXStream(java.lang.reflect.Method javaMethod, java.lang.Class<?>[] types)
protected com.thoughtworks.xstream.XStream getXStream()
protected com.thoughtworks.xstream.io.HierarchicalStreamDriver getHierarchicalStreamDriver()
Copyright © 2013 Caelum. All Rights Reserved.