Class RemoteIndexSupport


  • public class RemoteIndexSupport
    extends java.lang.Object
    Utility methods supporting the fhir-remote-index consumer
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.gson.Gson getGson()
      Get an instance of Gson configured to support serialization/deserialization of remote index messages (sent through Kafka as strings)
      static java.lang.String marshallToString​(RemoteIndexMessage message)
      Marshall the RemoteIndexMessage to a JSON string
      static RemoteIndexMessage unmarshall​(java.lang.String jsonPayload)
      Unmarshall the JSON payload parameter as a RemoteIndexMessage
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoteIndexSupport

        public RemoteIndexSupport()
    • Method Detail

      • getGson

        public static com.google.gson.Gson getGson()
        Get an instance of Gson configured to support serialization/deserialization of remote index messages (sent through Kafka as strings)
        Returns:
      • unmarshall

        public static RemoteIndexMessage unmarshall​(java.lang.String jsonPayload)
        Unmarshall the JSON payload parameter as a RemoteIndexMessage
        Parameters:
        jsonPayload -
        Returns:
      • marshallToString

        public static java.lang.String marshallToString​(RemoteIndexMessage message)
        Marshall the RemoteIndexMessage to a JSON string
        Parameters:
        message -
        Returns: