|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.i2p.addressbook.SubscriptionList
class SubscriptionList
A list of Subscriptions loaded from a file.
| Constructor Summary | |
|---|---|
SubscriptionList(File locationsFile,
File etagsFile,
File lastModifiedFile,
File lastFetchedFile,
long delay,
List<String> defaultSubs,
String proxyHost,
int proxyPort)
Construct a SubscriptionList using the urls from locationsFile and, if available, the etags and last-modified headers loaded from etagsFile and lastModifiedFile. |
|
| Method Summary | |
|---|---|
SubscriptionIterator |
iterator()
Return an iterator over the AddressBooks represented by the Subscriptions in this SubscriptionList. |
void |
write()
Write the etag and last-modified headers, and the last-fetched time, for each Subscription to files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubscriptionList(File locationsFile,
File etagsFile,
File lastModifiedFile,
File lastFetchedFile,
long delay,
List<String> defaultSubs,
String proxyHost,
int proxyPort)
locationsFile - A file containing one url on each line.etagsFile - A file containg the etag headers used for conditional GET. The
file is in the format "url=etag".lastModifiedFile - A file containg the last-modified headers used for conditional
GET. The file is in the format "url=leastmodified".delay - the minimum delay since last fetched for the iterator to actually fetchdefaultSubs - default subscription fileproxyHost - proxy hostnameproxyPort - proxy port number| Method Detail |
|---|
public SubscriptionIterator iterator()
public void write()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||