@Deserializes(value={"application/json","json"}) public class JsonDeserializer extends Object implements Deserializer
| Constructor and Description |
|---|
JsonDeserializer(ParameterNameProvider provider,
TypeNameExtractor extractor,
XStreamBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
deserialize(InputStream inputStream,
ResourceMethod method) |
com.thoughtworks.xstream.XStream |
getConfiguredXStream(Method javaMethod,
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 Object[] deserialize(InputStream inputStream, ResourceMethod method)
deserialize in interface Deserializerpublic com.thoughtworks.xstream.XStream getConfiguredXStream(Method javaMethod, Class<?>[] types)
protected com.thoughtworks.xstream.XStream getXStream()
protected com.thoughtworks.xstream.io.HierarchicalStreamDriver getHierarchicalStreamDriver()
Copyright © 2014 Caelum. All Rights Reserved.