Class JacksonObjectSerialDeserial
- java.lang.Object
-
- org.wicketstuff.rest.contenthandling.json.objserialdeserial.JacksonObjectSerialDeserial
-
- All Implemented Interfaces:
org.wicketstuff.rest.contenthandling.IObjectSerialDeserial<String>
public class JacksonObjectSerialDeserial extends Object implements org.wicketstuff.rest.contenthandling.IObjectSerialDeserial<String>
Object serializer/deserailizer that works with JSON format and based on Jackson library.- Author:
- andrea del bene
-
-
Constructor Summary
Constructors Constructor Description JacksonObjectSerialDeserial()JacksonObjectSerialDeserial(com.fasterxml.jackson.databind.ObjectMapper objMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E> EdeserializeObject(String source, Class<E> targetClass, String mimeType)com.fasterxml.jackson.databind.ObjectMappergetObjMapper()StringserializeObject(Object target, String mimeType)
-
-
-
Method Detail
-
serializeObject
public String serializeObject(Object target, String mimeType)
- Specified by:
serializeObjectin interfaceorg.wicketstuff.rest.contenthandling.IObjectSerialDeserial<String>
-
deserializeObject
public <E> E deserializeObject(String source, Class<E> targetClass, String mimeType)
- Specified by:
deserializeObjectin interfaceorg.wicketstuff.rest.contenthandling.IObjectSerialDeserial<String>
-
getObjMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjMapper()
-
-