Class URLNotification

java.lang.Object
gov.usgs.earthquake.distribution.DefaultNotification
gov.usgs.earthquake.distribution.URLNotification
All Implemented Interfaces:
Notification
Direct Known Subclasses:
JsonNotification

public class URLNotification extends DefaultNotification
A URLNotification represents a product that is available via a URL.
  • Constructor Details

    • URLNotification

      public URLNotification(ProductId id, Date expirationDate, URL productURL)
      Construct a URLNotification.
      Parameters:
      id - which product is available.
      expirationDate - how long the product is available.
      productURL - where product is available.
  • Method Details

    • getProductURL

      public URL getProductURL()
      Returns:
      Location where this product can be downloaded.
    • equals

      public boolean equals(Notification that)
      A comparison method to see if two notifications are equal.
      Specified by:
      equals in interface Notification
      Overrides:
      equals in class DefaultNotification
      Parameters:
      that - Notification
      Returns:
      boolean