Class JsonTranslator<T>

  • Type Parameters:
    T - the type to be marshalled to/from json.

    public class JsonTranslator<T>
    extends java.lang.Object
    There should be a instance of this class per LegacyRestResource.
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonTranslator​(com.fasterxml.jackson.databind.ObjectReader objectReader, com.fasterxml.jackson.databind.ObjectWriter objectWriter, java.lang.Class<T> type)  
    • Method Summary

      Modifier and Type Method Description
      T from​(byte[] json)  
      T fromWithSpecificCause​(byte[] json)
      Translates json from T.
      protected java.util.Optional<java.lang.String> getJsonParseExceptionDuplicateKey​(com.fasterxml.jackson.core.JsonParseException e)  
      protected void handleJsonParseException​(com.fasterxml.jackson.core.JsonParseException jpe)  
      byte[] to​(java.lang.Object object)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait