Package gov.usgs.earthquake.distribution
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 Summary
Constructors Constructor Description URLNotification(ProductId id, java.util.Date expirationDate, java.net.URL trackerURL, java.net.URL productURL)
Construct a URLNotification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Notification that)
A comparison method to see if two notifications are equal.java.net.URL
getProductURL()
-
Methods inherited from class gov.usgs.earthquake.distribution.DefaultNotification
getExpirationDate, getProductId, getTrackerURL
-
-
-
-
Constructor Detail
-
URLNotification
public URLNotification(ProductId id, java.util.Date expirationDate, java.net.URL trackerURL, java.net.URL productURL)
Construct a URLNotification.- Parameters:
id
- which product is available.expirationDate
- how long the product is available.trackerURL
- where to send status updates.productURL
- where product is available.
-
-
Method Detail
-
getProductURL
public java.net.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 interfaceNotification
- Overrides:
equals
in classDefaultNotification
- Parameters:
that
- Notification- Returns:
- boolean
-
-