Class SubscriptionMessage

java.lang.Object
io.vantiq.client.SubscriptionMessage

public class SubscriptionMessage extends Object
This class represents a single subscription messages from Vantiq
  • Constructor Details

    • SubscriptionMessage

      public SubscriptionMessage()
  • Method Details

    • getStatus

      public int getStatus()
      The HTTP status code for this message. Usually, this is 100.
      Returns:
      The status code for the message
    • getContentType

      public String getContentType()
      The content type for the body of the message. Usually, this is application/json indicating the content was JSON encoded.
      Returns:
      The MIME type for the message body
    • getHeaders

      public Map<String,String> getHeaders()
      The headers associated with the message.
      Returns:
      The headers for the message.
    • getBody

      public Object getBody()
      Returns the payload for the message. For a JSON encoded message, this would be a Map.
      Returns:
      The body of the message.
    • toString

      public String toString()
      Overrides:
      toString in class Object