Class NotificationStoreUtils

java.lang.Object
fr.paris.lutece.plugins.notificationstore.web.utils.NotificationStoreUtils

public class NotificationStoreUtils extends Object
NotificationStoreUtils
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.fasterxml.jackson.databind.ObjectMapper
    ObjectMapper
    static <T> T
    jsonToObject(String jsonStr, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
    Converts json String response to the desired subclass instance.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getMapper

      public static com.fasterxml.jackson.databind.ObjectMapper getMapper()
      ObjectMapper
    • jsonToObject

      public static <T> T jsonToObject(String jsonStr, com.fasterxml.jackson.core.type.TypeReference<T> typeReference) throws com.fasterxml.jackson.core.JsonProcessingException
      Converts json String response to the desired subclass instance.
      Parameters:
      jsonStr - the json string value
      typeReference -
      Returns:
      the desired subclass instance
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
      com.fasterxml.jackson.databind.JsonMappingException