Interface JsonMessage

All Superinterfaces:
Message
All Known Subinterfaces:
JsonChannelMessage

public interface JsonMessage extends Message
Interface for sending JSON messages.

A new JsonMessage can be instantiated by calling CachedMessageFactory.createJsonMessage(String, Object) (CachedMessageFactory is available via CachingPublisher.getCachedMessageFactory() getCachedMessageFactory()}).

  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Use getJsonObject instead of this method, string format no-longer supported.
    Gets the JSON object
    boolean
    Is this JSON message a patch of existing data.

    Methods inherited from interface com.caplin.datasource.messaging.Message

    getMessageType, getSubject, isImage, setImage
  • Method Details

    • getJson

      @Deprecated String getJson()
      Deprecated.
      Use getJsonObject instead of this method, string format no-longer supported.
      Gets the JSON string of the message.
      Returns:
      The JSON string.
    • getJsonObject

      Object getJsonObject()
      Gets the JSON object
      Returns:
      json as Object
    • isPatch

      boolean isPatch()
      Is this JSON message a patch of existing data.
      Returns:
      Whether the JSON message is a patch or not.