Class 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 Detail

      • JacksonObjectSerialDeserial

        public JacksonObjectSerialDeserial​(com.fasterxml.jackson.databind.ObjectMapper objMapper)
      • JacksonObjectSerialDeserial

        public JacksonObjectSerialDeserial()
    • Method Detail

      • serializeObject

        public String serializeObject​(Object target,
                                      String mimeType)
        Specified by:
        serializeObject in interface org.wicketstuff.rest.contenthandling.IObjectSerialDeserial<String>
      • deserializeObject

        public <E> E deserializeObject​(String source,
                                       Class<E> targetClass,
                                       String mimeType)
        Specified by:
        deserializeObject in interface org.wicketstuff.rest.contenthandling.IObjectSerialDeserial<String>
      • getObjMapper

        public com.fasterxml.jackson.databind.ObjectMapper getObjMapper()