class Subscription extends Object
| Constructor and Description |
|---|
Subscription(String location,
String etag,
String lastModified,
String lastFetched)Construct a Subscription pointing to the address book at location, that
was last read at the time represented by etag and lastModified. |
| Modifier and Type | Method and Description |
|---|---|
String | getEtag()Return the etag header that we received the last time we read this
subscription. |
long | getLastFetched()Return when the subscription was last fetched. |
String | getLastModified()Return the last-modified header that we received the last time we read
this subscription. |
String | getLocation()Return the location this Subscription points at. |
void | setEtag(String etag)Set the etag header. |
void | setLastFetched(long t)Set when the subscription was last fetched. |
void | setLastModified(String lastModified)Set the last-modified header. |
public Subscription(String location, String etag, String lastModified, String lastFetched)
location - A String representing a url to a remote address book. Non-null.etag - The etag header that we received the last time we read this
subscription. May be null.lastModified - the last-modified header we received the last time we read
this subscription. May be null.lastFetched - when the subscription was last fetched (Java time, as a String).
May be null.public String getEtag()
public long getLastFetched()
public String getLastModified()
public String getLocation()
public void setEtag(String etag)
etag - A String containing the etag header.public void setLastFetched(long t)
t - the time the subscription was last fetched (Java time in ms)public void setLastModified(String lastModified)
lastModified - A String containing the last-modified header.