Class JsonNotification

All Implemented Interfaces:
Notification

public class JsonNotification extends URLNotification
Json formatted notification. Stores stores product content in URLNotification as a data URL.
  • Field Details

    • created

      public final Instant created
      When notification was created.
    • product

      public final Product product
      Product attached to notification.
  • Constructor Details

    • JsonNotification

      public JsonNotification(javax.json.JsonObject json) throws Exception
      Parse a Json formatted Notification.
      Parameters:
      json -
      Throws:
      Exception
    • JsonNotification

      public JsonNotification(Instant created, Product product) throws Exception
      Create a JsonNotification from an existing Product.
      Throws:
      Exception
    • JsonNotification

      public JsonNotification(Instant created, Product product, Date expiration) throws Exception
      Create a JsonNotification with an expiration date.
      Throws:
      Exception