Class GsonObjectSerialDeserial
- java.lang.Object
-
- org.wicketstuff.rest.contenthandling.json.objserialdeserial.GsonObjectSerialDeserial
-
- All Implemented Interfaces:
org.wicketstuff.rest.contenthandling.IObjectSerialDeserial<String>
public class GsonObjectSerialDeserial extends Object implements org.wicketstuff.rest.contenthandling.IObjectSerialDeserial<String>
Object serializer/deserailizer that works with JSON format and based on Gson library.- Author:
- andrea del bene
-
-
Constructor Summary
Constructors Constructor Description GsonObjectSerialDeserial()
GsonObjectSerialDeserial(com.google.gson.Gson gson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E> E
deserializeObject(String source, Class<E> targetClass, String mimeType)
com.google.gson.Gson
getGson()
String
serializeObject(Object target, String mimeType)
-
-
-
Method Detail
-
serializeObject
public String serializeObject(Object target, String mimeType)
- Specified by:
serializeObject
in interfaceorg.wicketstuff.rest.contenthandling.IObjectSerialDeserial<String>
-
deserializeObject
public <E> E deserializeObject(String source, Class<E> targetClass, String mimeType)
- Specified by:
deserializeObject
in interfaceorg.wicketstuff.rest.contenthandling.IObjectSerialDeserial<String>
-
getGson
public com.google.gson.Gson getGson()
-
-